I want to create a simple editor, for example Notepad ++ with simple functionality ... I need to color a specific word in a rich area text box. How can i do this?
For example: when a user writes this word, I want to color them blue. These words: for , while , if , try , etc.
How can I get richtextbox to select a specific word and then color it? And, if I want to make a comment and color everything after // , how is this done in richtextbox?
How can I specify a line in a text box, so now I can specify the line number when I code in my editor?
c #
Q8Y
source share