metanorma / isodoc

Generate HTML/Word from Metanorma XML
https://www.metanorma.org
BSD 2-Clause "Simplified" License
3 stars 3 forks source link

Add syntax highlighting support for source code blocks #84

Open ribose-jeffreylau opened 5 years ago

ribose-jeffreylau commented 5 years ago

Currently, all [source,*] blocks are only black and white.

It would be great if syntax highlighting can be supported for [source,*] blocks.

ronaldtse commented 5 years ago

HTML syntax highlighting seems easy by inclusion of a JS and proper tagging (https://highlightjs.org).

Highlighting in Word may be a challenge... (https://www.ryadel.com/en/displaying-code-snippets-in-microsoft-word-with-syntax-highlighting/)