Situation

I have a RichText Editor. I understand the RichText Box pretty well, and i know this can be done, but im not sure of the best was to do it.

I want to

I want to make a syntax highlighting system, so if the user types "Dim" (btw this isnt syntax highlighting for VB, its just an example), it turns the word dim blue.

Any help would be greatly appriciated.