How do I insert HTML or PHP or Javascript code into a Blogger post?
I want something like the code in this poste where I wrote about the ugly and simple Blogger templates. The solution is simple.
- Copy the code into your NOTEPAD!
- Use Edit->Replace (or Ctrl+H) and in find all the < and replace them with & l t ; (delete the spaces between the characters, without spaces you would just see another < here)
- Use Edit->Replace (or Ctrl+H) and in find all the > and replace them with & g t ; (delete the spaces between the characters, without spaces you would just see another > here)
- Copy the code from NOTEPAD into the Blogger post
- And you are done
What have you done? The & l t ; is another way of telling the browser to shov a <.
Simple!
what's your problem.
ReplyDelete&alt cant make it because & (will become &) how?
ReplyDeletehere is an example: http://mashed-up-blog.blogspot.com/2009/03/how-to-get-crappy-ugly-looking-blogger.html
ReplyDeleteokay but what if I need to show code and explain coding in a blog and it needs to show the < or the > and other tags as examples?
ReplyDeleteNice tut, thanks.
ReplyDeleteanonymous - this will show < and > tags! Just by replacing them with & g t ; the cone will not be executed, but people will still see < and > in your blogpost when they read it.
ReplyDeletethis is not what im looking for. thanks for the effort..
ReplyDeleteHye! thanks alot, i really need it!
ReplyDelete@diden try to goolge for the encoder.
ReplyDeletethat is much easier..
try this one,
centricle.com/tools/html-entities
works fine for me thank you. see here:
ReplyDeletehttp://www.korte.de/alexander/2009/12/landing-page-in-wordpress.html
at the bottom of the post.
It really do the trick. Thanks btw.
ReplyDeleteNice discovery friend.
ReplyDeleteI appreciate you.
thanks for the info...
ReplyDeleteit help me..
Thank you so much for the information!
ReplyDeleteNeeded it much :)
GBU
Arti