help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wiki: syntax highlight


From: Ben Abbott
Subject: Re: Wiki: syntax highlight
Date: Wed, 07 Mar 2012 08:52:23 -0500

On Mar 7, 2012, at 8:03 AM, Fredrik Lingvall wrote:

> On 03/07/12 13:47, Ben Abbott wrote:
>> On Mar 7, 2012, at 2:53 AM, Juan Pablo Carbajal wrote:
>> 
>>> Hi,
>>> Is there chance we could have this extension installed in the wiki
>>> http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi
>>> It is for syntax highlight and it highlights matlab code (guess a
>>> MediaWiki expert could use gedit conf file to produce Octave
>>> highlighting)
>>> 
>>> It will considerable increase the visual appeal of the tutorial I am
>>> writing in the wiki.
>>> 
>>> Thank you
>> 
>> I rather like having code placed in a colored box. Can this highlighting be 
>> combined with that ?
>> 
>> Ben
> 
> You can replace,
> 
> $css[] = "\tline-height: normal; border: 0px none white;";
> 
> with
> 
> 
> $css[] = "\tline-height: normal; border: 1px dashed #2f6fab;";
> 
> in the SyntaxHighlight_GeSHi.class.php file to get a dashed border around the 
> code. I have not figured out how to get the light gray background that<pre>  
> ...</pre>  has though.
> 
> /Fredrik

Thanks. The box is sufficient, I think.

Ben





reply via email to

[Prev in Thread] Current Thread [Next in Thread]