How to Syntax Highlight in a RichTextBox [C#]?

后端 未结 6 2064
别那么骄傲
别那么骄傲 2020-12-13 20:32

How do I syntax highlight in a richtextbox control AS THE USER TYPES and USING A String[] keywords. I will be publishing a lightweight notepad to the web soon

6条回答
  •  误落风尘
    2020-12-13 21:17

    The Scintilla control is an excellent source code editor that includes syntax highlighting amongst a whole range of other features. You can embed it in your own app and there is a .NET wrapper available.

    With Scintilla you can specify the keywords and it will then apply the syntax highlighting as you type.

提交回复
热议问题