Tuesday, 27 September 2011

How to post code in blogger!

Ok, after struggling initially with posting code in blogger I managed to figure out how to do this. When I started this blog I didn't realise the following tags existed:

<pre name="code">
code goes here!
</pre>


This is much better and results in better formatted posts. The only real "gotcha" is you'll have to replace some "html" style tags with their html safe equivalent. For example, "<" becomes "&lt;"

Now to go back and fix my blog...

No comments:

Post a Comment