Please help me get start on a very simple text parser for RichEdit syntax highlighting. I know there are components for this, but I want to learn to make a super simple one.

Please give me a snippet to start with.

I want to have my richedit change the color of the word "test" everytime it is type in the control to the color REd. Please help me.