Skip to content

Generate grammar file for Pygments#2040

Merged
DanGrayson merged 1 commit intoMacaulay2:developmentfrom
d-torrance:pygments
May 4, 2021
Merged

Generate grammar file for Pygments#2040
DanGrayson merged 1 commit intoMacaulay2:developmentfrom
d-torrance:pygments

Conversation

@d-torrance
Copy link
Copy Markdown
Member

Pygments is a Python syntax highlighter. See https://pygments.org/. It's also the syntax highlighter used by minted.

For example:

profzoom@peg-amy:~/src/macaulay2/M2/M2/Macaulay2/editors/pygments$ pygmentize -O full -x -l macaulay2.py:Macaulay2Lexer -o foo.html ../make-M2-symbols.m2 

Creates the following:
https://jsfiddle.net/mj8p67bw/show

@DanGrayson DanGrayson merged commit 71606b0 into Macaulay2:development May 4, 2021
@DanGrayson
Copy link
Copy Markdown
Member

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants