Today @bd808 and I updated the #Pygments syntax highlighter on #Wikimedia 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 :)
https://phabricator.wikimedia.org/T334433
#python #Pygments 2.15 released (2023-04-10)
- https://github.com/pygments/pygments/releases/tag/2.15.0
"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 https://pygments.org/docs/changelog/"
I just got the first version of my Respawn Squirrel (source engine scripting language) lexer working! I'm making it in #pygments for highlighting in the Sphinx documentation for the https://northstar.tf #titanfall2 #modding 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
#MediaWiki uses the #Pygments syntax highlighter to enable rich formatting of code blocks: https://www.mediawiki.org/wiki/Extension:SyntaxHighlight
diskdance has submitted a pull request to add a lexer to support #wikitext markup: https://github.com/pygments/pygments/pull/2373
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
Wow, #pygments is amazing huh?
I have to explore the SVGFormatter class too...
Teacher in #Maths & #ComputerScience #numérique, #sciences #informatiques #NSI.
Toot on #Science, #Tech, #Education, #Politics, and any stuff. #introduction
RTs≠Endorsement.
#OpenSource #foss #developer
#mkdocs extensions & add-ons :
#mkdocs-#graphviz , #mkdocs-#asy ,
#Massilia CSS/Javascript add-ons for #mkdocs.
#Pygments (French) #Pseudocode #lexer.
#OpenEducation #OpenEdu
Sites : #mkhack3rs #eskool
(ex?)Twitter/Gitlab/Github @rod2ik
#maths #computerscience #numerique #sciences #informatiques #nsi #science #tech #education #politics #introduction #free #opensource #foss #developer #mkdocs #graphviz #asy #massilia #pygments #pseudocode #lexer #openeducation #openedu #mkhack3rs #eskool
I think this #Pygments theme is the most Halloweeny of the bunch.
https://dpaste.com/styles/#inkpot
(I promise I will not submit a pull request to change its name to "Pumpkin Spice".)
Presuming there are other #Python developers besides me who periodically go looking for a simple visual catalog of #Pygments code-colorizing styles, I'll share this page I made last weekend: https://dpaste.com/styles