Skip to content

KSyntaxHighlighting - Over 300 Highlightings...

Sunday, 25 August 2019 | Christoph Cullmann

I worked yesterday again on the Perl script that creates the highlighting update site used by e.g. Qt Creator.

I thought it would be perhaps a good idea to create some simple human readable overview with all existing highlighting definitions, too.

The result is this auto-generated Syntax Highlightings page.

Astonishing enough, at the moment the script counts 307 highlighting definitions. I wasn't aware that we already crossed the 300 line.

Still, it seems people miss some highlighting definitions, take a look at the bug list of KSyntaxHighlighting.

The bugs with requests for new definition requests got marked with [New Syntax].

I am actually not sure if we should at all keep bugs for such requests, if no patch is provided there to add such an highlighting. Obviously, we want to have proper highlighting for all stuff people use.

But, as we have these bugs at the moment, if you feel you have the time to help us, take a look. Some Perl 6 highlighting is appreciated, or any of the others there ;=) Or perhaps you have a own itch to scratch and provide something completely different!

Our documentation provides hints how to write a highlighting definition. Or just take a look at the existing XML files in our KSyntaxHighlighting repository.

Patches are welcome on the KDE Phabricator.

Otherwise, if you provide a new definition XML + one test case, you can attach them to the bug, too (or send them to

With test case an example file in the new language is wanted, with some liberal license. This will be used to store reference results of the highlighting to avoid later regressions and to judge the quality of the highlighting and later improvements.

We would prefer MIT licensed new files, if they are not derived from older files that enforce a different license, thanks! (in that case, it would be good to mention in some XML comment which file was used as base)