help-octave
[Top][All Lists]
Advanced

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

Re: Wiki: syntax highlight


From: Juan Pablo Carbajal
Subject: Re: Wiki: syntax highlight
Date: Wed, 7 Mar 2012 18:44:55 +0100

On Wed, Mar 7, 2012 at 2:52 PM, Ben Abbott <address@hidden> wrote:
> 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
>
>
>

I think for the general public and the visual appeal, the box is
highly defficient. It maybe an issue with the brownser, but here
</pre> shows a tiny fonrt, very thin and grey and is very hard to
read.

Who can add the syntaxhighlight extension to the wiki server?


-- 
M. Sc. Juan Pablo Carbajal
-----
PhD Student
University of Zürich
http://ailab.ifi.uzh.ch/carbajal/


reply via email to

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