开发者

coloring in the rich text box in C#

开发者 https://www.devze.com 2023-02-28 01:35 出处:网络
How, I can achieve this functionality when I write down something in rich text box and press space or enter key and then if i开发者_Go百科t is a keyword( Void, main,if, else etc) then it should be in

How, I can achieve this functionality when I write down something in rich text box and press space or enter key and then if i开发者_Go百科t is a keyword( Void, main,if, else etc) then it should be in blue color. Means only thats word which is key word. I have been made the functionality to achieved the word which i am typing but not able to set the blue color.

Thanks in advance.


Maybe simply switch to Scintilla.Net and set the lexer to the language you like (or write your own lexer)?

0

精彩评论

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