Manoli.net has a great tool for formatting C# code for presentation in a web site. Includes an automatic CSS generator: http://www.manoli.net/csharpformat/
They generously made the source code available here: http://www.manoli.net/csharpformat/CSharpFormat.zip
For generating markup from c#: http://www.matlus.com/c-to-html-syntax-highlighter-using-roslyn
ReplyDelete