Ticket #543 (closed enhancement: fixed)

Opened 8 years ago

Last modified 5 years ago

wiki: install syntax highlighter

Reported by: ianweller Owned by: santosp,ricky,mmcgrath
Priority: trivial Milestone:
Component: Web Application Version:
Severity: Normal Keywords: WIKI
Cc: poelstra@…, nb Blocked By:
Blocking: Sensitive:


i'd recommend http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi, it is the one mediawiki.org uses

Change History

comment:1 Changed 8 years ago by poelstra

  • Cc poelstra@… added

comment:2 Changed 8 years ago by mmcgrath

  • Owner changed from mmcgrath to nobody

comment:3 Changed 7 years ago by josemm

/*Summary By: Jose Manimala Dated: 17/03/2009 Extension used: SyntaxHighlight_GeSHi(As recommended) */

  1. Installed a fresh mediawiki instance.
  2. cd extensions folder in mediawiki installation.
  3. downloaded the latest stable version of SyntaxHighlight_GeSHi from


  1. The file geshi.php is required for the extension to work. If the mediawiki install was done by means of subversion then the following procedure is to be followed.

or goto

Note: do not forget to change the path in SyntaxHighlight_GeSHi.class.php to require_once( 'geshi/geshi.php' ); or else the mediawiki install blanks out.

  1. Add this line to your LocalSettings?.php:


and now your extension should be up and running.

  1. Edit a page and use the following example to test the extension

<source lang="php"> <?php

$v = "string"; sample initialization

?> html text <?

echo $v; end of php code

?> </source>

++ Fin ++

comment:4 Changed 7 years ago by nb

  • Cc nb added

comment:5 Changed 7 years ago by davivercillo

  • Owner changed from nobody to santosp,ricky,mmcgrath
  • Priority changed from major to trivial
  • Component changed from General to Web Application
  • Type changed from bug to enhancement

comment:6 Changed 7 years ago by ianweller

comment:7 Changed 5 years ago by kevin

  • Status changed from new to closed
  • Resolution set to fixed

The review here didn't result in a package. ;)

Closing this. If we still want a syntax highlighter, we should look at re-submitting it or finding a easier to package one.

Note: See TracTickets for help on using tickets.