Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting in literate output #14

Open
athas opened this issue May 30, 2023 · 1 comment
Open

Syntax highlighting in literate output #14

athas opened this issue May 30, 2023 · 1 comment

Comments

@athas
Copy link
Member

athas commented May 30, 2023

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

@Lukires
Copy link
Contributor

Lukires commented May 30, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants