Reputation: 9989
could you point me a good .NET Code formatter?
I would like to post pieces of code in my website and make them look beautiful.
The formatter it self would be great if it had extra option(s) like code selection by copying to clipboard.
Thanks and regards!
Upvotes: 0
Views: 284
Reputation: 21798
Most versatile code formatter/highligher I know is highlight.js.
You should take a look at Smashing Magazine's Code Beautifier / Code Highlighter post. It contains more code highlighters than you can shake your stick at.
Upvotes: 0
Reputation: 26307
Check http://alexgorbatchev.com/SyntaxHighlighter/
or http://code.google.com/p/google-code-prettify/
Both will solve your problem. Here is an example using prettify http://docs.bendsoft.com/camelot-net-connector/1_1/programming/connecting-to-sharepoint/opening-the-connection/
Upvotes: 3