Difference between revisions of "SyntaxHighlighting"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
|name=SyntaxHighlight | |name=SyntaxHighlight | ||
|url=https://www.mediawiki.org/wiki/Extension:SyntaxHighlight | |url=https://www.mediawiki.org/wiki/Extension:SyntaxHighlight | ||
− | |purpose=syntax highlighting of | + | |purpose=syntax highlighting of diverse languages |
|since=2007/04/03 | |since=2007/04/03 | ||
|wiki=Ceur-wsWiki, Crwiki, OPEN RESEARCH, Rqwiki, Vanilla | |wiki=Ceur-wsWiki, Crwiki, OPEN RESEARCH, Rqwiki, Vanilla |
Latest revision as of 19:35, 23 June 2021
Extension
Extension | |
---|---|
edit | |
name | SyntaxHighlight |
url | https://www.mediawiki.org/wiki/Extension:SyntaxHighlight |
purpose | syntax highlighting of diverse languages |
since | 2007/04/03 |
wiki | Ceur-wsWiki, Crwiki, OPEN RESEARCH, Rqwiki, Vanilla |
Installation
wfLoadExtension( 'SyntaxHighlight_GeSHi' );
Example
1def quick_sort(arr):
2 less = []
3 pivot_list = []
4 more = []
5 if len(arr) <= 1:
6 return arr
7 else:
8 pass
public class Syntax {
}
wf@capri:/var/www/mediawiki/code/extensions/SyntaxHighlight_GeSHi/pygments$ ./pygmentize -V
Pygments version 2.5.2, (c) 2006-2019 by Georg Brandl.