Is there a way to "print" to pdf, html, or similar a copy of the code with syntax highlighting?

This would be for sharing snippets or files with folks who do not have a Julia-enabled editor.

You may use pygments
https://pygments.org/demo/
Copy and paste your code and get the html file or use it within LaTeX to get pdf.

2 Likes

carbon is fun, too.

3 Likes