I'm trying to write a code editor which has colour codeing but using an RTFbox's seltext is to slow, especially opening large amounts of the code.

I'm writing the editor for viewing ASP VB script and HTML in the one viewer and I wnat to colour code but it runs like a dog with fleas when you open a large source file...

how do people normally write code editors?