Formatting code snippets for blogging on Blogger

Posted by nzpcmad on Stack Overflow See other posts from Stack Overflow or by nzpcmad
Published on 2009-03-24T20:49:35Z Indexed on 2012/06/26 9:16 UTC
Read the original article Hit count: 273

Filed under:
|
|

My blog is hosted on Blogger and I frequently post code snippets in C / C# / Java / XML etc. but I find the snippet gets "mangled".

Are there any web sites that I could use to parse the snippet beforehand and sort out the formatting, convert XML "<" to "<" etc.

There are a numbers of questions around this area on SO but I couldn't find any that address this question directly.

Edit: For @Rich answer, site states "To display the formatted code on your site, you need to get this CSS stylesheet, and add a reference to it in the section of your page". That's the problem - you can't do this on Blogger AFAIK.

© Stack Overflow or respective owner

Related posts about formatting

Related posts about blogs