You are viewing an old version of this page. Return to the latest version.
Difference between revisions of "Reference:SyntaxHighlight"
(Tag: 2017 source edit) |
Extension: SyntaxHighlight
Overview | |||
---|---|---|---|
Description: | provides Provides syntax highlighting and code rendering. | ||
State: | stable | Dependency: | MediaWiki |
Developer: | Brion Vibber, Tim Starling, Rob Church, Ori Livneh | License: | - GPL v2+ |
Type: | MediaWiki | Category: | Rich Articles |
Edition: | BlueSpice free, BlueSpice pro, BlueSpice Farm, BlueSpice Cloud | ||
For more info, visit Mediawiki.
|
Features[edit source]
Adds SyntaxHighlight adds customizable syntax highlighting functionality.
Case study[edit | edit source]
(Geshi-)Syntax-Highlight error
<?php $v = "string"; // Beispielcode ?> HTML-Text <? echo $v; // Ende des PHP-Codes ?> // Hallo Welt in Microsoft C#. using System; class HelloWorld { public static int Main(String[] args) { Console.WriteLine("Hallo, Welt!"); return 0; } }Source: mediawiki It is powered by the Pygments library and supports hundreds of different programming languages and file formats.
Important! The pygmentize
binary needs to be executable by the webserver user (see installation instructions for SyntaxHighlight).
{{BSExtensionInfobox |desc=providesProvides syntax highlighting and code rendering. |status=stable |developer=Brion Vibber, Tim Starling, Rob Church, Ori Livneh |type=MediaWiki |edition=BlueSpice free, BlueSpice pro , BlueSpice Farm, BlueSpice Cloud |active=Yes |compatible=MediaWiki |category=Rich Articles |license=GPL v2+ |docu=https://www.mediawiki.org/wiki/Extension:SyntaxHighlight }} Adds '''SyntaxHighlight''' adds customizable syntax highlighting functionality. ==Case study== [http://sourceforge.net/p/bluespice/bugs/294/ (Geshi-)Syntax-Highlight error] <source lang="php"> <?php $v = "string"; // Beispielcode ?> HTML-Text <? echo $v; // Ende des PHP-Codes ?> </source> <source lang="csharp"> // Hallo Welt in Microsoft C#. using System; class HelloWorld { public static int Main(String[] args) { Console.WriteLine("Hallo, Welt!"); return 0; } } </source> [[de:{{FULLPAGENAME}}]][[en:{{FULLPAGENAME}}]] [[Category:Extension]] '''Source: '''[https://www.mediawiki.org/wiki/Extension:SyntaxHighlight mediawiki] It is powered by the Pygments library and supports hundreds of different programming languages and file formats. {{Box Note|boxtype=important|Note text=The <code>pygmentize</code> binary needs to be executable by the webserver user ([https://www.mediawiki.org/wiki/Extension:SyntaxHighlight#Installation see installation instructions for SyntaxHighlight]).}} {{Translation}} [[Category:BlueSpice free]] [[Category:MediaWiki]] [[Category:Extension]]
(14 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{BSExtensionInfobox | {{BSExtensionInfobox | ||
− | |desc= | + | |desc=Provides syntax highlighting and code rendering. |
|status=stable | |status=stable | ||
|developer=Brion Vibber, Tim Starling, Rob Church, Ori Livneh | |developer=Brion Vibber, Tim Starling, Rob Church, Ori Livneh | ||
|type=MediaWiki | |type=MediaWiki | ||
− | |edition=BlueSpice free, BlueSpice pro | + | |edition=BlueSpice free, BlueSpice pro, BlueSpice Farm, BlueSpice Cloud |
|active=Yes | |active=Yes | ||
|compatible=MediaWiki | |compatible=MediaWiki | ||
|category=Rich Articles | |category=Rich Articles | ||
+ | |license=GPL v2+ | ||
|docu=https://www.mediawiki.org/wiki/Extension:SyntaxHighlight | |docu=https://www.mediawiki.org/wiki/Extension:SyntaxHighlight | ||
}} | }} | ||
− | + | '''SyntaxHighlight''' adds customizable syntax highlighting functionality. | |
− | + | It is powered by the Pygments library and supports hundreds of different programming languages and file formats. | |
− | |||
+ | {{Box Note|boxtype=important|Note text=The <code>pygmentize</code> binary needs to be executable by the webserver user ([https://www.mediawiki.org/wiki/Extension:SyntaxHighlight#Installation see installation instructions for SyntaxHighlight]).}} | ||
− | + | {{Translation}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | [[Category:BlueSpice free]] | |
− | + | [[Category:MediaWiki]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | [[ | ||
[[Category:Extension]] | [[Category:Extension]] | ||
− | |||
− | |||
− |