Skip to main content
0 votes
0 answers
52 views

I use ubuntu 22.04 and I saw there is already configure file /etc/gtags/gtags.conf from ubuntu package "global". In the configuration file, there is already the configurations of pygments-...
CatMM's user avatar
  • 23
0 votes
1 answer
55 views

Is there a way to inject a class into the <code> tag produced by wagtail-markdown so that I can style my Markdown code blocks with Prism instead of Pygments, which is the default syntax ...
xnx's user avatar
  • 25.8k
0 votes
0 answers
15 views

I'm using Pygments to beautify JSON. The data has lists of lists, where the inner lists always have 3 short (10 chars) entries. Is there a way to tell Pygments to put those 3 on one line to shorten ...
sebhaase's user avatar
  • 584
0 votes
0 answers
164 views

I have a problem with Markdown, Pygments and CodeHiliteExtension in Django. I have a blog post written in Markdown, then I have a save function like that: def save(self, *args, **kwargs): #...
Peksio's user avatar
  • 585
2 votes
0 answers
572 views

I created Pygments customized lexer and style: acetexlexer.py (lexer file), acedracula.py (style file), that work pretty well since the following command returns the expected result: pygmentize -O ...
Denis Bitouzé's user avatar
0 votes
0 answers
68 views

The joined image shows a same syntax highlighted (LaTeX) code in two blocks codes, both with the same Dracula style/theme: the first one with Pygments, the second one with Ace Editor. As one can ...
Denis Bitouzé's user avatar
-1 votes
1 answer
186 views

i've developed and tested a custom pygments lexer, as described here... i then prepared a pyproject.toml file whose contents are as follows: [build-system] requires = ["setuptools"] build-...
biosbob's user avatar
  • 331
0 votes
0 answers
835 views

I am using pygments to highlight some syntax in a jupyter notebook. Here a minimal code to reproduce the issue: from IPython.display import display, HTML from pygments import highlight from pygments....
Neo's user avatar
  • 488
0 votes
1 answer
1k views

I would like to create a web page that will display data I have in a table inside a code block just the way it is here, even with a copy function. I can already display the data on the page, I just ...
Steve's user avatar
  • 1,058
1 vote
2 answers
364 views

I'm creating an Asciidoctor document with some code blocks. I'm using pygments as syntax highlighter. In the output, trailing empty lines in a code block are removed. Normally that's fine, but in some ...
wovano's user avatar
  • 5,198
1 vote
1 answer
477 views

I put together a lexer that should ideally work for psuedocode, but when I test it using python3 -m pygments -x -l ./psuedo.py:PseudoLexer test.pseudo, I keep getting the following error: "no ...
Revise's user avatar
  • 370
0 votes
1 answer
195 views

I'm trying to index the Pascal files of a project, on Linux (modern Ubuntu). I've followed the instructions, but I'm very confused because of several factors. The procedure I've applied is: $ apt ...
Marcus's user avatar
  • 5,315
3 votes
1 answer
138 views

I'd like to list source code of Mustache templates in my paper, and I'm using the minted package for highlighting code in my LaTeX source. The minted package simply uses Pygments. But there isn't any ...
Nicole Naumann's user avatar
5 votes
1 answer
12k views

I tried installing pygments on Debian 9 using both apt-get install python3-pygments and pip install Pygments but no method makes it work on the command line. My suspicion is that my PATH doesn't ...
Laraconda's user avatar
  • 707
1 vote
1 answer
574 views

I would like to print a string with sql into my jupyter notebook like below This was done manually with pygments, see Here is what I tried so far from pygments import highlight from pygments.lexers ...
PalimPalim's user avatar
  • 3,068

15 30 50 per page
1
2 3 4 5
18