MediaWiki: Difference between revisions

From Wreckroom
Jump to navigation Jump to search
(Created page with "WikiMedia Extensions Pygments clone into extensions/ <syntaxhighlight> cd /volume1/web_packages/mediawiki/extensions git clone https://github.com/wikimedia/mediawiki-extensions-SyntaxHighlight_GeSHi.git </syntaxhighlight> configure LocalSettings.php <syntaxhighlight> vim /volume1/web_packages/mediawiki/LocalSettings.php wfLoadExtension( 'SyntaxHighlight_GeSHi' ); php maintenance/update.php --quick systemctl restart httpd </syntaxhighlight>")
 
No edit summary
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
WikiMedia Extensions
WikiMedia Extensions
Pygments
Pygments
clone into extensions/
clone into <code>extensions/</code>


<syntaxhighlight>
<syntaxhighlight>
Line 10: Line 10:
configure LocalSettings.php
configure LocalSettings.php


<syntaxhighlight>
<code>
vim /volume1/web_packages/mediawiki/LocalSettings.php
vim /volume1/web_packages/mediawiki/LocalSettings.php
</code>
Add the following line:
<code>
wfLoadExtension( 'SyntaxHighlight_GeSHi' );
wfLoadExtension( 'SyntaxHighlight_GeSHi' );
</code>
Run this line in terminal
<code>
php maintenance/update.php --quick
php maintenance/update.php --quick
systemctl restart httpd
</code>
 
</syntaxhighlight>

Latest revision as of 18:44, 21 March 2024

WikiMedia Extensions Pygments clone into extensions/

cd /volume1/web_packages/mediawiki/extensions
git clone https://github.com/wikimedia/mediawiki-extensions-SyntaxHighlight_GeSHi.git

configure LocalSettings.php

vim /volume1/web_packages/mediawiki/LocalSettings.php

Add the following line:

wfLoadExtension( 'SyntaxHighlight_GeSHi' );

Run this line in terminal

php maintenance/update.php --quick