Maybe use a text editor scintilla in code editor? Very nice open source component with highlighting syntax, and much more...
http://www.scintilla.org/
text editor
Moderator: Moderators
Do you have any problems with SynEdit that ZGE is using currently? 
Scintilla looks good but it is written in C++ which makes integration with ZGE more difficult and it would need to be included as a DLL which would increase distribution size.

Scintilla looks good but it is written in C++ which makes integration with ZGE more difficult and it would need to be included as a DLL which would increase distribution size.