开发者

How to create Syntax Highlighting Text Box [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.

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 question

How 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜