Sunday, September 14, 2008

How to write code in blogger posts

html code converter
For those of you who have tried to write widget codes in blogger posts and noticed that the widget loads in the post will find this useful.Okay first of all you cannot write HTML or CSS code the way they are because they will be implemented as code and the browser will act accordingly so you have to change certain characters in the code like this.

The following characters in blue should be written like the ones red so that the code is interpreted as text and not code

" - "
& - &
< - &lt;
>- &gt;

Now if you have 30 lines of code you do not have the time to replace each of the characters so there is an easier way to do it using a converter.It can encode and decode these characters for you.Like the one at this website:centricle,it is very easy to use and fast.