There are no Win32 or Message functions you can use to speed this up. The problem is that you're using the worst control you can to do this. The RichTextBox does not lend itself well to syntax highlighting. Unfortunately, it's also the easiest to use without writing your own TextBox class to support this. You may want to do some research by chekcing out these[^] articles to see if you can pick up a faster technique. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome