Simple Powerful Syntax Highlighter
PasTokenize is a unit part of Powtils or to be used without Powtils for syntax highlighting and tokenizing pascal files.
Source Code
The source is at https://github.com/z505/powtils/blob/master/dev/examples/code-pastie/hiliter/pastokenize.pas showing syntax highlighting in html and made for any other system (your own synedit like editor could be possible with this unit with some work).