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 with pygments #81

Open
byorgey opened this issue Apr 16, 2018 · 2 comments
Open

Syntax highlighting with pygments #81

byorgey opened this issue Apr 16, 2018 · 2 comments
Labels
C-Moderate Effort Should take a moderate amount of time to address. S-Nice to have Minor importance U-UI Z-Documentation Z-Feature Request Z-Student Good project for a student.

Comments

@byorgey
Copy link
Member

byorgey commented Apr 16, 2018

It would be nice to write a pygments syntax highlighter for disco, so we can have nice syntax highlighting for code examples in the documentation.

@byorgey byorgey added C-Moderate Effort Should take a moderate amount of time to address. Z-Feature Request Z-Documentation labels Apr 16, 2018
@byorgey
Copy link
Member Author

byorgey commented Aug 20, 2018

@byorgey byorgey added S-Nice to have Minor importance U-UI labels Jun 24, 2020
@byorgey
Copy link
Member Author

byorgey commented Mar 1, 2022

As an alternative, we could update the pretty-printer so it is able to output tokens tagged with semantic information to aid in coloring. It seems a bit silly to have to maintain a completely separate lexer for the language in Python. I am not sure how this kind of thing usually works.

Of course, a big advantage of using pygments is that it would work natively with readthedocs (I think? see sphinx-doc/sphinx#9105 ) and also with the minted LaTeX package.

@byorgey byorgey changed the title pygments highlighting for disco Syntax highlighting for disco with pygments Feb 17, 2024
@byorgey byorgey added the Z-Student Good project for a student. label Sep 19, 2024
@byorgey byorgey changed the title Syntax highlighting for disco with pygments Syntax highlighting with pygments Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Moderate Effort Should take a moderate amount of time to address. S-Nice to have Minor importance U-UI Z-Documentation Z-Feature Request Z-Student Good project for a student.
Projects
None yet
Development

No branches or pull requests

1 participant