|
-
Jul 23rd, 2003, 04:52 PM
#1
Thread Starter
Hyperactive Member
RTB Syntax Highlighting
Like in VB, C++ and most languages, what would be the fastest way to syntax highlight? I will be using a Rich Text Box since a textbox wont cut it, so an RTB is my only other option unless someone else has a better idea? what i am trying to do is say the user types this:
If X == y then
cout << "wxyz"
endif
I would like to say make the if red, the then red, and then endif red, and the cout blue, and the "wxyz" green. but is there an easy way to do this so the screen will not flicker. because to change the color of a portion of text in a rtb you have to highlight the text and then change it. so my question is, how does M$ do it?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|