views:

95

answers:

2

Is there a good tool available (preferably opensource or free) that will take C# or VB.NET source code, prettify it (format it consistintly) and convert it into HTML source code (so I can post it on the web)?

+1  A: 

I think your question is already solved in: http://stackoverflow.com/questions/454853/pretty-print-colorize-c

backslash17
+1  A: 

You can use the code formatting tools in Visual Studio (CTRL+K+D by default) and any number of code to html tools.

http://manoli.net/csharpformat/

Tom Anderson
I highly recommend this as well. If you're working in a team at all, you really want to make sure everyone in the team uses the same tool to prettify. Because it's built in, and it's quite nice, this is a great recommendation.
aronchick