1. Henning Schröder
  2. syntaxhighlighter

Source

syntaxhighlighter / doc / index.rst

Welcome to SyntaxHighlighter for PyQt's documentation!

With this package you can create fast custom syntax highlighters for PyQt.

Unlike libraries like Pygments there is no need to retokenize the whole text after a small change. Instead it works using a state machine mechanism which is directly supported by QSyntaxHighlighter.

It uses a concept from Eclipse where the source is separated into partitions. For each partition context you can define different tokens which are accepted by the scanner. By keeping track of the previous state it is possible to quickly retokenize only small parts of a text.

The code is highly optimized for speed in order to prevent blocking the GUI.

How to get it

The latest snapshot is available at:

https://bitbucket.org/henning/syntaxhighlighter/get/tip.tar.bz2

To clone the Mercurial repository do:

hg clone https://bitbucket.org/henning/syntaxhighlighter

Or just got to the BitBucket overview page:

https://bitbucket.org/henning/syntaxhighlighter

More info