MediaWiki Extension SyntaxHighlight: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 15: Line 15:


Add the following line at the bottom of [[Media_Wiki_Concepts#LocalSettings.php|LocalSettings.php]]
Add the following line at the bottom of [[Media_Wiki_Concepts#LocalSettings.php|LocalSettings.php]]
<syntaxhighlight lang='php'>
wfLoadExtension( 'SyntaxHighlight_GeSHi' );
</syntaxhighlight>

Revision as of 07:13, 7 December 2020

External

Internal

Installation

Download from https://www.mediawiki.org/wiki/Special:ExtensionDistributor/SyntaxHighlight_GeSHi

Expand in /var/www/<mediawiki-dir>/extensions:

tar -xzf SyntaxHighlight_GeSHi-REL1_35-6bd7a93.tar.gz -C /var/www/mediawiki-1.35.0/extensions

Add the following line at the bottom of LocalSettings.php

wfLoadExtension( 'SyntaxHighlight_GeSHi' );