1 Dec 2010

<pre> and <code> in blogger blogs

It seems that the best way to post code in a blogger blog is by encoding the chevrons '<>' and ampersands '&' using something like http://centricle.com/tools/html-entities/

Some styles are needed in the template and you have to wrap the code up in <pre>...</pre> or <code>...</code>

No comments:

Post a Comment