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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -