Saturday, July 31, 2010

How to Write HTML Codes Inside the Blogger using Code?

Want to write HTML code in one of your great code-editing post but it is not showing up as you want? Well read on for the solution.
It’s a nuisance in blogger, when you write HTML/JavaScript in the post it will not show up as text. Actually blogger by default tries to interpret the written code. To overcome this, you will have to alter your HTML/JavaScript as follows:
Replace all the < characters with <
And all the > characters with >
(Exactly the same including the semicolons).

For example if you want to write the below given code in your post

Then it will be written as <b:skin><[[CDATA[ in the Compose box.
It is better to write your post in a text-editor like Microsoft Word and use its “Find and Replace” feature to change the above characters with ease.

0 comments:

Post a Comment