Page 1 of 1

make certain strings in a rtb a color

Posted: Tue Feb 19, 2008 6:11 pm
by Dagger13
im making a program and i want to make it so when ever there is a "if" it will turn blue

and if someone puts a "//" in a line the rest of that line will turn green

i cant find a way to do this
o and i mean when they type in a richtextbox
im using vb 2005
thx

Posted: Sat Feb 23, 2008 11:06 am
by Dagger13
sry for the double post but does any body know?

Posted: Sat Feb 23, 2008 11:52 am
by OwnZ joO
Google syntax highlighting with a RichTextBox

Posted: Mon Feb 25, 2008 4:27 am
by xbox7887
You might want to also check out QWhale, it's a great library...