The switch to Pygments has caused Commons files generated using 'dot'
to no longer have syntax highlighting, and four are appearing in
https://commons.wikimedia.org/wiki/Category:Pages_with_syntax_highlighting_…
But that will likely expand to the 26 files in
https://commons.wikimedia.org/wiki/Category:Images_with_Graphviz_source_code
I couldn't see any language supported by Pygments which has similar
syntax, so we should probably set the lang=text for all 26.
Support for this language was requested in 2014, and you can vote for it at
https://bitbucket.org/birkenfeld/pygments-main/issues/1024
While on the topic, there is a nice extension which would provide
native support for this format.
https://www.mediawiki.org/wiki/Extension:GraphViz
---------- Forwarded message ----------
From: Ori Livneh <ori(a)wikimedia.org>
Date: Tue, Jun 23, 2015 at 10:48 AM
Subject: [Wikitech-l] Upcoming SyntaxHighlight_GeSHi changes
To: wikitech-ambassadors(a)lists.wikimedia.org, Wikimedia developers
<wikitech-l(a)lists.wikimedia.org>
Hello,
Over the course of the next two days, a major update to the
SyntaxHighlight_GeSHi extension will be rolled out to Wikimedia wikis. The
change swaps geshi, the unmaintained PHP library which performs the lexical
analysis and output formatting of code, for another library, called
Pygments.
The roll-out will remove support for 31 languages while adding support for
several hundred languages not previously supported, including Dart, Rust,
Julia, APL, Mathematica, SNOBOL, Puppet, Dylan, Racket, Swift, and many
others. See <https://people.wikimedia.org/~ori/geshi_changes.txt> for a
full list. The languages that will lose support are mostly obscure, with
the notable exception of ALGOL68, Oz, and MMIX.
The change is expected to slightly improve the time it takes to load and
render all pages on all wikis (not just those that contain code blocks!),
at the cost of a slight penalty (about a tenth of a second) on the time it
takes to save edits which introduce or modify a block of highlighted code
to an article.
Lastly, the way the extension handles unfamiliar languages will change.
Previously, if the specified language was not supported by the extension,
instead of a code block, the extension would print an error message. From
now on, it will simply output a plain, unhighlighted block of monospaced
code.
The wikitext syntax for highlighting code will remain the same.
-- Ori
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
--
John Vandenberg