Hi, since we recently discussed editor support and syntax highlighting:
Pandoc can use definitions from Kate[1] for syntax highlighting in a
code block via "--syntax-definition".
There’s also ConTeXt support (MkIV/LMTX):
https://kate-editor.org/syntax/data/syntax/context.xml
Apparently, it can switch contexts to Lua, XML, MetaPost etc.
But the list of commands is quite short.
In case the author (Philipp A.) is listening: Is this intentional (“not
necessary, highlight everything that starts with a backslash”)?
Otherwise it probably would make sense to read in the interface files
(i-*.xml).
I can’t tell if it would make sense to support this syntax via a module
(like scite and vim). What we have if probably enough for most of us.
Hraban
[1]
List: https://kate-editor.org/syntax/
Specs: https://api.kde.org/frameworks/syntax-highlighting/html/
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________