Since I started posting my code snippets and samples I've not been happy with the formatting. Code is never easy to understand even less so when the syntax isn't highlighted. I went on a google and found the following site: http://www.manoli.net/csharpformat/. It allows you to format your
C#,
VB,
HTML,
XML,
T-SQL
or
MSH (code name Monad)
code for publishing on a web site or in a blog, highlighting the syntax.
It would be nice if I could write some function to do this for me when I blog but tI think that may be some time in coming! In the meantime I shall be using this tool to make my code sample and snipets easier on the eye.
Also I've jsut decided that leaving the line numbers out will be better as then the code and just be copied out, with the line numbers you can't do a straight copy and paste.
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5