Colour key words in an RTF box
-
Hi there! I am learning VB.net, and want to develop my own text editor for program code. How would I colour certain key words only?? If someone could point me in the right direction I would be most grateful! Many thanks in advance, Dan Fowler
-
Hi there! I am learning VB.net, and want to develop my own text editor for program code. How would I colour certain key words only?? If someone could point me in the right direction I would be most grateful! Many thanks in advance, Dan Fowler
-
You could easily catch evt the KeyUp event and see if theres somthing typed in that should be colorised..the keywords you could have in an array or something.. simply look up if theres is a match in the array, and then set the color. Hmm...
You also need to be able to manage things like cut/copy/paste and the crazy way the poeple can edit (moving cursor around). All in all it is not really easy, and an clear, fast, easy methid is not trivial.