Thursday, January 26, 2012

How to write html/javascript code in blogger blog post?

How to write html/javascript code in blogger blog post? write html/javascript code in blogger blog postIf you have ever tried writing HTML/Javascript code in your blogger blog post then you might have found that it does not appear as code in the post. Instead the code is interpreted and displayed. The above problem can be simply fixed by replacing < with "Ampersand(&)lt;" and > by "Ampersand(&)gt;" . Here we are providing a few elegant ways to do this. We will start with the toughest one first. If you like easy things just skip to the last step.



Method 1 Open notepad and paste your code in it. Hit ctrl+h or choose Edit > Replace In Find what: box type < and in Replace with: box type "Ampersand(&)lt;" and hit Replace all button Similarly for > type > in Find what: box and "Ampersand(&)gt;" in Replace with: box. Your are done, the code is ready to be used in your post.



Method 2 Paste your code in the text box below and hit Convert button. Done! Your code is ready to be pasted in your blogger blog post. For easy access we suggest that you bookmark (ctrl+d) this page.



Method 3 The above method requires you to visit this page whenever you want to convert your code. This is waste of time and will also require your to have an active internet connection. Let's make things a bit easier download html converter now.



Method 4 The next method is the official solution from blogger. If you need to write html code in your post just select post options and in compose settings choose Show HTML literally. Any code now written will not be interpreted as HTML.

follow following link: http://bloggerfunda.blogspot.com/2009/11/how-to-write-htmljavascript-code-in.html

No comments:

Post a Comment