Jump to content

Extension talk:Geshi

Add topic
From mediawiki.org
Latest comment: 16 years ago by NSK Nikolaos S. Karastathis in topic Errors after upgrading to PHP 5.3

I installed this extension on my site. I include a lot of sample code on my wiki, so I'll be making a lot of use out of this extension. It would be nice if there was a download file. Since I down have svn access on my host, I had to do a check-out, gzip, ftp, and unzip. Also, in your geshi/geshi.php, you may want to set a style for the block like this:

// inside function highlight
$geshi->set_overall_style('background: #EEEEEE; border: padding: 0.2em');

Brianegge 03:14, 17 July 2007 (UTC)Reply

Thanks for your 'style' suggestion: I have included it in the SVN trunk. As for the 'download' package, there is one for the whole 'BizzWiki' platform. I do not currently envision having a separate download package per-extension as it is much more overhead for me. Jean-Lou Dupont 10:21, 17 July 2007 (UTC)Reply

'StubManager' not found

[edit]

Im using StubManager (version 1.0.2) but I am getting Fatal error: Class 'StubManager' not found in C:\SMWIKI\extensions\geshi\geshi.php on line 15 when I try to run your extension. Any idea how I can fix this? Thanks --Magick 10:17, 22 October 2007 (UTC)Reply

Have you put the require 'extensions/StubManager/StubManager.php' in your LocalSettings.php? Jean-Lou Dupont 11:57, 22 October 2007 (UTC)Reply

The stub extention should be in first

Like this:

require_once ("MediaWiki/StubManager/StubManager.php"); //Stub manager

require_once ("MediaWiki/geshi/geshi.php"); //Geshi

Extension:SyntaxHighlight GeSHi

[edit]

What is the relation of this extension with Extension:SyntaxHighlight GeSHi? What are their differences? Why Wikipedia uses Extension:SyntaxHighlight GeSHi and not this? Which one is most often kept updated/bugfree? NSK Nikolaos S. Karastathis 01:18, 27 October 2008 (UTC)Reply

Never mind, I see this at svn:


 * Unlike the older GeSHi MediaWiki extension floating around, this makes
 * use of the new extension parameter support in MediaWiki 1.5 so it only
 * has to register one tag, <source>.

Errors after upgrading to PHP 5.3

[edit]

After upgrading to php 5.3 I've following erros

Warning: Parameter 1 to geshiClass::tag_geshi() expected to be a reference, value given in /usr/local/www/data/mediawiki/extensions/StubManager/StubManager.php on line 783

Any suggestions?

NSK Nikolaos S. Karastathis 01:25, 27 October 2008 (UTC)Reply