SyntaxHighlight
lastmod 2025-11-20created 2021-01-2111 edits
The SyntaxHighlight extension, formerly known as SyntaxHighlight_GeSHi, highlights source code when the <syntaxhighlight> tag is used. It uses the Pygments library and supports a wide range of languages, including over 100 programming languages, markup languages, SQL, and shell scripts.
Like the <pre> and <poem> tags, text is rendered exactly as it was entered.
Languages
See Pygments#Languages. For the list of lexers previously supported by GeSHi, see here.
Alternatives
- autoconf -> bash (⚓ T105889 SyntaxHighlight lost support for 30 languages (regression) by switching from GeSHi to Pygments)
Categories
- Pygments
- MediaWiki:SyntaxHighlight