winforms - Formatting C# code in text? -
if notice in editor writing in right now, when press "ctrl + k" , paste code , save it, become formatted in visual studio.
now want own program using winforms , view snippets of codes save , format accordingly. appreciated.
for blog use manoli's c# formatter.
http://www.manoli.net/csharpformat/
the source code of formatter available here:
http://www.manoli.net/csharpformat/csharpformat.zip
basically collect keywords, compiler directives...etc. , use regular expressions find them. author wraps html tags around them format text.
you follow same approach , include own formatting compatible whichever winforms control want use.
Comments
Post a Comment