Monday, September 5, 2011

Syntax Highlighting in Blogger

http://www.craftyfella.com/2010/01/syntax-highlighting-with-blogger-engine.html

I found this setup quite useful for formatting code snippits in blog posts.  I use the <pre>
tags wrapped around the raw text of the code. (Not sure what the guy is talking about using the <script> tags... as that seems broken) You may also need this tool http://www.opinionatedgeek.com/dotnet/tools/htmlencode/encode.aspx to deal with any angle brakets (such as inline xml....)

No comments:

Post a Comment