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
== Purpose of PasTokenize Syntax highlighting in html is shown in the source code directory.
It can be used other purposes like your own synedit/scintella editor like control with some work with GUI. It may be simpler to understand than the a bit complex synedit and scintella syntax highlighting systems. Speed would also need to be checked as pastokenize is fast and can be made faster if needed