make certain strings in a rtb a color

Post here about scripting and programming for HaloPC (audio, network, ai, etc.)
Post Reply
User avatar
Dagger13





Posts: 370
Joined: Wed Nov 22, 2006 12:37 pm

make certain strings in a rtb a color

Post 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
Image(An Old one.)
User avatar
Dagger13





Posts: 370
Joined: Wed Nov 22, 2006 12:37 pm

Post by Dagger13 »

sry for the double post but does any body know?
Image(An Old one.)
OwnZ joO




Articulatist 500

Posts: 980
Joined: Thu Nov 10, 2005 4:24 pm

Post by OwnZ joO »

Google syntax highlighting with a RichTextBox
User avatar
xbox7887




Socialist Coagulator Decryptor Advisor
Eureka Commentator Wave Scorched Earth

Posts: 2160
Joined: Mon Dec 27, 2004 6:19 pm
Location: New Lenox, Illinois
Contact:

Post by xbox7887 »

You might want to also check out QWhale, it's a great library...
Post Reply