diku-dk / futhark-playground

Futhark playground
http://playground.futhark-lang.org
GNU General Public License v3.0
8 stars 0 forks source link

Syntax highlighting in literate output #14

Open athas opened 1 year ago

athas commented 1 year ago

I think you can get Pandoc to read a highlighting file.

Lukires commented 1 year ago

The markdown renderer I am currently using, md-block, supports Prism out of the box, which easily lets us add syntax highlighting.

I have implemented some basic syntax highlighting for Futhark in this: image

The code for the highlighter is very simple and can be found here: https://github.com/diku-dk/futhark-playground/blob/main/web-server/static/prism/futhark.js