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 13:42:24 -0500

On Mar 7, 2012, at 12:44 PM, Juan Pablo Carbajal wrote:

> 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.

I was referring to adding a dotted box around the highlighted code produced by 
the syntaxhighlight extension.

Meaning ...

(1) modify the syntaxhighlight  extension to box the highlighed code by 
replacing (-) with (+)

        - $css[] = "\tline-height: normal; border: 0px none white;";

        + $css[] = "\tline-height: normal; border: 1px dashed #2f6fab;";

(2) Install the syntaxhighlight  extension.

Ben




reply via email to

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