I like to share a website I frequently use to format any code (C#, XML or T-SQL) to HTML for using on my blog. Other possibilities are to format VB, HTML or msh, but I haven't used these myself yet.
You can also add things like line numbers, or use alternating backgrounds. And to modify the colors of the output, you'll just need to change the css style sheet.
Also because everytime I need it, I'll have to search the website again on google. So this way I'll save some time for me too :).
Here's the link: http://www.manoli.net/csharpformat/
Geen opmerkingen:
Een reactie posten