Auf
delphiforfun gibt es ein Beispiel für ein schnelles Highlighten von Wörtern.
Zitat:
Applying syntax formatting to a sizable Richedit file is quite slow. The technique used here is to intercept the WindowProc procedure used by TRichedit and let it paint the window which we then scan for words to by highlighted and rewrite them in the specified color.[...]