how to make user text change color [Archive] - C Board

PDA

View Full Version : how to make user text change color


DarkViper
12-12-2002, 06:45 PM
i am making a text editor and i want to know what code i need to put in, and where to insert it.

while running, when the user types in something like <html> i want that whole thing "<html>" to change to something like....blue! or something, and i want other keywords to appear the same color or a different one, how would i be able to do this, and where would i put it? im stumped and cant think of anything.

xds4lx
12-12-2002, 06:51 PM
There are a few ways to go about it. Have your program keep a list of keywords, and have it check what the user has typed into the prog. If its one of they keywords change its color.

RoD
12-12-2002, 07:49 PM
This looks more like a programming forum post then a tech forum post.

DarkViper
12-14-2002, 02:49 PM
omg.... R-O-D, i posted this once in a the programming boards and salem...or someone moved it to the tech board and said it belongs here. so i posted another one becuase no one was of any help...

anyways xds4lx, thats a good idea, but know where i should put it? or what the code would remotly look like at all????

RoD
12-15-2002, 05:28 PM
well if your making a text editor.....bleh whatever