Syntax highlighter inside a RICHEDIT control

Hi again!
I have created a RICHEDIT control and I want to create a simple syntax highligher. What can I do?
I can select any text, I can change it's color, font size, family or style. I can move the cursor position wherever I want inside the RICHEDIT.
My question: what do you think would be a good way of creating a simple syntax highlighter, having these functions?

Thanks
Use a regular expression library to parse the text.
If you read those syntax highlighter source codes you soon find out that they are custom controls, not modified Rich Edits.
Yeah, I suppose I have to take the next step in programming: creating my own controls. Anyway, I need them to be exported with the binary or a dll library. I don't want .ocx file or something like that (maybe I don't know what I am talking about)
The regex can also be a quick and easy way. Thanks!
Topic archived. No new replies allowed.