[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Wiki: syntax highlight
From: |
Fredrik Lingvall |
Subject: |
Re: Wiki: syntax highlight |
Date: |
Thu, 08 Mar 2012 08:48:04 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120217 Thunderbird/10.0.1 |
On 03/08/12 02:17, John W. Eaton wrote:
On 8-Mar-2012, Joanna Cheng wrote:
| I don't have shell access; the right person to talk to about extension
| installation is jwe.
And you need to give me precise instructions, including URLs for where
I can find extensions, etc.
jwe
This is what I did (on our Gentoo box):
1) Download the extension:
http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi
2) Uncompress it in the extensions folder (the path below is for Gentoo)
~ # tar -xzf SyntaxHighlight_GeSHi-MW1.18-r90546.tar.gz -C
/var/www/localhost/htdocs/mediawiki/extensions
3) Edit the
/var/www/localhost/htdocs/mediawiki/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php
file
On line 270 change (to enable the dashed box):
$css[] = "\tline-height: normal; border: 0px none white;";
to
$css[] = "\tline-height: normal; border: 1px dashed #2f6fab;";
I would prefer some more space between the text and the dashed box (eg., similar
to<pre>) but my php skills are rather limited.
/Fredrik
- Re: Wiki: syntax highlight, Ben Abbott, 2012/03/07
- Re: Wiki: syntax highlight, Joanna Cheng, 2012/03/07
- Re: Wiki: syntax highlight, John W. Eaton, 2012/03/07
- Re: Wiki: syntax highlight, Ben Abbott, 2012/03/07
- Re: Wiki: syntax highlight,
Fredrik Lingvall <=
- Re: Wiki: syntax highlight, Juan Pablo Carbajal, 2012/03/08
- Re: Wiki: syntax highlight, Juan Pablo Carbajal, 2012/03/08
- Re: Wiki: syntax highlight, Carnë Draug, 2012/03/08
- Re: Wiki: syntax highlight, Juan Pablo Carbajal, 2012/03/09