This free online C# to HTML converter will colorize your C# code like Visual Studio and will produce a piece of HTML code ready to be published in your website or blog. Just paste your C# code in the "C# code" text field and click the <Colorize> button. See sample.
Do not forget to insert the following CSS style sheet to you blog/website. If you cannot or you do not want to insert a CSS style sheet, select the "Inline styles" check box.