If you only want a simple editor that does syntax coloring and not a whole IDE, try Scintilla(available at sourceforge.net).