Python keywords #2904
Unanswered
dpgoldenberg
asked this question in
Q&A
Python keywords
#2904
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am starting to use Pygments, via the LaTeX minted package. My goal is to typeset Python code using the highlighting scheme used in JupyterLab, or something close to that. Starting with the default style, I have managed to get close to what I want by adding modifications to the LaTeX file, as described here: https://topanswers.xyz/tex?q=8045#a7657
But, I am stuck on the highlighting of some of the Python keywords, specifically "continue", "del", "global" and "in".
As far as I can tell, none of these words are highlighted using any of the standard keyword tokens, and
"continued" is highlighted as Name.Class
"global" and "in" are highlighted as Name.Namespace
But, I haven't been able to figure out how "del" is handled.
My goal here is to highlight all of the Python keywords in the same way (bold green). I'm sure that there is a lot that I still don't understand about how pygments works, and any guidance would be greatly appreciated!
Thanks,
David
Beta Was this translation helpful? Give feedback.
All reactions