Ive been wanting to make a program that basically is a html editor. But i also want to make it with color coding.

Any idea's?

I had the idea of the Find method in the rich text box and search for "<" and ">" and the = and " in a HTML tag and change the SelectedColor and change the properties in a html tag. Like id and so on...
The problem is with this is that when i type straight after the ">" or any other colored thingy the text will be that color
and it looses focos of where i am typing it will loose focus.

Does anyone know the code that they use in frontpage, ultradev, dreamweaver and visual studio that changes color of the text or any other good code.

Plz help me. I am sorta newb