FYI, Scintilla is the editor component that Notepad++ uses. It's quite a popular open source editor control.

http://www.scintilla.org/