Custom source highlighting for asciidoctor

Viewed 11

I am writing an asciidoc document and want to do syntax highlighting for "code" that is not known to the asciidoc highlighter.

For example I want to highlight the output of git status -sb

## main...origin/main
?? test.txt

For all I want I can imagine simple rules (for example regex).

Is there a simple way to extend the asciidoctor source code highlighter for custom syntax?

0 Answers
Related