Want to improve this question? Update the question so it focuses on one pr开发者_运维百科oblem only by editing this post.
Closed 2 years ago.
Improve this questionHow to create a Syntax Highlighting Textbox Using C#.Net
Take ScintillaNet and take one of the predefined lexer or write your own one (example of IniLexer). If you're going to adopt the sample you should also take a look into this discussion.
Making the Syntax highlighting textbox written in C#
http://www.codeproject.com/KB/miscctrl/FixingTheCode.aspx
You can actually use the ICSharpCode.TextEditor bundled with the Sharp Develop IDE source code. This is a fully-featured code editor. Using that control you can define your own syntax color rules and auto complete lookups.
Install the nuget package:
PM> Install-Package ICSharpCode.TextEditor
A good tutorial is available at http://www.codeproject.com/Articles/30936/Using-ICSharpCode-TextEditor
精彩评论