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 syntax highlighting and code rendering. | ||
State: | stable | Dependency: | MediaWiki , BlueSpice |
Developer: | Brion Vibber, Tim Starling, Rob Church, Ori Livneh | License: | - GPL v2+ |
Type: | MediaWiki | Category: | Rich articles"Rich articles" is not in the list (Administration, Editor, Export, Mobile, Reporting, Skinning, Book, Communication, Infrastructure, Personalization, ...) of allowed values for the "BSExtensionInfoCategory" property.Articles |
Edition: | BlueSpiceFree"BlueSpiceFree" is not in the list (BlueSpice pro, BlueSpice free, BlueSpice Farm, BlueSpice Cloud, BlueSpice free (deactivated), BlueSpice pro (deactivated), BlueSpice Farm (deactivated), BlueSpice Cloud (deactivated)) of allowed values for the "BSExtensionInfoEdition" property., BlueSpicePro"BlueSpicePro" is not in the list (BlueSpice pro, BlueSpice free, BlueSpice Farm, BlueSpice Cloud, BlueSpice free (deactivated), BlueSpice pro (deactivated), BlueSpice Farm (deactivated), BlueSpice Cloud (deactivated)) of allowed values for the "BSExtensionInfoEdition" property. | ||
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; } }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=Provides syntax highlighting and code rendering. |status=stable |developer=Brion Vibber, Tim Starling, Rob Church, Ori Livneh |type=MediaWiki |edition=BlueSpiceFree, BlueSpicePro BlueSpice free, BlueSpice pro, BlueSpice Farm, BlueSpice Cloud |active=Yes |compatible=MediaWiki, BlueSpice |category=Rich articles |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> [[en:{{FULLPAGENAME}}]][[de:SyntaxHighlight GeSHi 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]]
(21 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
{{BSExtensionInfobox | {{BSExtensionInfobox | ||
+ | |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= | + | |edition=BlueSpice free, BlueSpice pro, BlueSpice Farm, BlueSpice Cloud |
|active=Yes | |active=Yes | ||
− | |compatible=MediaWiki | + | |compatible=MediaWiki |
− | |category=Rich | + | |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]] |