In SciTE (Scintilla), how can I create Syntax-Highlighting for my own custom language?

I looked at it once, it's quite painful, because all is defined statically in the c++ source code.

You have to define a certain number of rules among the one already existing in scintilla, for things like... well it's quite mangled. You can quickly search for "scintilla lexer" on google, but you to understand that syntax highlighters are very sophisticated to code, just look at notepad++ and all its features: it's almost a code parser, which is found in compilers.

On top of that, a scintilla lexer can be made for any type of language.

Another problem is that coloring the text has to be platform agnostic, and again, I guess it favors windows (duh), and don't forget the font renderer, which can also be another thing.

I'm not sure scintilla has been ported to gnome or kde, has it ?