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
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; } }

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).


Attachments

Discussions