Here is URL with a code formatter that formats your code for publishing on a web site or in a blog.
Because I was searching a long time for such a useful tool, I don’t want to hold back the URL. The following code formatter can convert C#, VB, HTML/XML/ASPX, T-SQL and msh code.