Take a look on
Scintilla[
^]. Download SciTe editor first and check if it is capable of what you want (as I know it is). SciTe is based on Scintilla component which is extensible to support "unknown" languages also, but it has several built-in highlight presets.