I use this tool to format code for use in my blog, articles etc.
Feel free to use it yourself. You'll need a reference to an appropriate stylesheet, either
from this site or a copy on your own: http://csharpindepth.com/codestyles.css
Cut and paste code here: