|
-
January 24th, 2000, 08:06 AM
#1
HELP: Checking Text for Syntax-Colors
I've made a HTML-Editor in VB using the RichTextEditBox.
Now I want to colour the tags etc..
E.g. tag and name in blue, tagsubtypes in red and stringvalues in green (it's only an example!).
How to do that running very fastly?
Normaly it's too slow (on big files... take a nap...).
Does someone know how'to manage that?
Thanks!
-
January 24th, 2000, 08:44 AM
#2
Re: HELP: Checking Text for Syntax-Colors
Have you tried the code from the CodeGuru site at http://codeguru.developer.com/vb/articles/1739.shtml ?
Failing that, you'll probably have to rewrite your code-colouring routines in C++ (I had to for my own program and it's about 10-20X faster in C++).
There's examples of Syntax Highlighting available on the MFC codeguru site under the rich edit control (http://codeguru.developer.com/richedit/index.shtml).
Chris Eastwood
CodeGuru - the website for developers
http://codeguru.developer.com/vb
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
|