开发者

How to create Syntax Highlighting Text Box [closed]

开发者 https://www.devze.com 2022-12-29 17:38 出处:网络
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 b
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

精彩评论

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