Ticket #543 (closed enhancement: fixed)

Opened 6 years ago

Last modified 3 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:

Description

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

Change History

comment:1 Changed 6 years ago by poelstra

  • Cc poelstra@… added

comment:2 Changed 5 years ago by mmcgrath

  • Owner changed from mmcgrath to nobody

comment:3 Changed 5 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

http://sourceforge.net/project/showfiles.php?group_id=114997

  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:

require_once("extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.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 5 years ago by nb

  • Cc nb added

comment:5 Changed 5 years ago by davivercillo

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

comment:6 Changed 4 years ago by ianweller

comment:7 Changed 3 years ago by kevin

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

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.