Wednesday, 29 August 2007

Posting Code in Your Blog

On some of my resent posts Ive been having trouble displaying code on my blog due to blogger trying to turn the code into HTML objects such as buttons, so instead of seeing the code like I wanted an actuall button would be displayed.

My first thought was to use the <code></code> tags but this wouldnt display properly so I also tried <pre></pre> but still I had the same problem the page was converting the HTML to an object and not displaying the code.

After searching the net for a while I found a site that would encode / decode HTML so that it can be displayed in a browser and not converted to an object etc.