Skip to content

ANSI highlighter

Jonathan Poelen requested to merge jpoelen/syntax-highlighting:ansi into master

ANSI format for kate-syntax-highlighter:

$ ./bin/kate-syntax-highlighter -fansi256Colors a.cpp

2020-09-19-203459_166x37_scrot

For the moment, the background and text colors are by default that of the terminal. I am thinking of changing that, perhaps with an additional option.

There is also an option that displays the name of the formats:

2020-09-19-203437_304x397_scrot

I'm going to add regions and contexts, but for now the code is ugly with some bugs.

2020-09-19-201933_119x200_scrot

Note: I use a variant of Breeze dark as the theme

Edited by Jonathan Poelen

Merge request reports