views:

69

answers:

3

Hi, Similar to other user controls in C# to add to a winform (such as commonly found for xml formatting) does someone know of one for source editing? Hopefully, this includes the source for the control and does a pretty nice job of making source code readable in a visual studio kind of way.

thanks

Or maybe Microsoft provides one, but I haven't found any yet.

A: 

You can customize a RichTextBox control to provide syntax highlighting. As for source code, you'll probably want to look at the SharpDevelop codebase.

Xint0
A: 

Maybe this stuff will help you out:

http://www.codeproject.com/KB/edit/SyntaxHighlighting.aspx

Dennis
+3  A: 

Try scintilla, it is a really great library: http://scintillanet.codeplex.com/

Its features will make you surprised ;)

honibis