Kunal Mehta · @legoktm
439 followers · 885 posts · Server wikis.world

Today @bd808 and I updated the syntax highlighter on from version 2.11.2 to 2.15.1 and saw a pretty significant drop in latency so far!

Also brought in some new languages, including the long-requested "wikitext"! You can now highlight wikitext markup in wikitext! lots of documentation to update :)

phabricator.wikimedia.org/T334

phabricator.wikimedia.org/T334

graph source: grafana.wikimedia.org/d/RKogW1

#pygments #wikimedia

Last updated 1 year ago

pvergain · @pvergain
294 followers · 2348 posts · Server framapiaf.org

2.15 released (2023-04-10)

-mail.python.org/archives/list/

- github.com/pygments/pygments/r

"Pygments 2.15 provides half a dozen new lexers and many improvements to
existing lexers, as well as official support for Python 3.11. Please
have a look at the changelog pygments.org/docs/changelog/"

#pygments #python

Last updated 1 year ago

Lucas Werkmeister · @LucasWerkmeister
403 followers · 1677 posts · Server wikis.world

TIL: when pytest shows code, it automatically adds syntax highlighting if pygments is installed <3

(pictured: the same test before vs. after installing pygments in the venv)

#python #pytest #pygments

Last updated 1 year ago

laund · @laund
47 followers · 298 posts · Server hachyderm.io

I just got the first version of my Respawn Squirrel (source engine scripting language) lexer working! I'm making it in for highlighting in the Sphinx documentation for the northstar.tf client.

Pygments lexers are heaps of painful regex, and it probably doesn't help that I've never built a lexer before. But hey, now the docs can have beautiful code blocks! image is a screenshot of the readthedocs page.

#pygments #titanfall2 #modding

Last updated 1 year ago

MediaWiki · @mediawiki
79 followers · 2 posts · Server wikis.world

uses the syntax highlighter to enable rich formatting of code blocks: mediawiki.org/wiki/Extension:S

diskdance has submitted a pull request to add a lexer to support markup: github.com/pygments/pygments/p

Hopefully it'll be in a release soon, to be used in on-wiki help pages and documentation!

(h/t to rundg for spotting)

#mediawiki #pygments #wikitext

Last updated 1 year ago

@joshburnett @nmstoker

Wow, is amazing huh?
I have to explore the SVGFormatter class too...

#pygments

Last updated 2 years ago

dpaste.com · @Dpaste
37 followers · 140 posts · Server fosstodon.org

I think this theme is the most Halloweeny of the bunch.

dpaste.com/styles/#inkpot

(I promise I will not submit a pull request to change its name to "Pumpkin Spice".)

#pygments

Last updated 3 years ago

Paul :python: :django: :linux: · @pbx
293 followers · 1278 posts · Server fosstodon.org

Presuming there are other developers besides me who periodically go looking for a simple visual catalog of code-colorizing styles, I'll share this page I made last weekend: dpaste.com/styles

#pygments #python

Last updated 4 years ago