octave-maintainers
[Top][All Lists]
Advanced

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

Re: Wiki: syntax highlight


From: Joanna Cheng
Subject: Re: Wiki: syntax highlight
Date: Thu, 8 Mar 2012 12:09:18 +1100



On Thu, Mar 8, 2012 at 5:48 AM, Ben Abbott <address@hidden> wrote:
On Mar 7, 2012, at 1:42 PM, Ben Abbott wrote:

> 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

Moving to the maintainers mail-list.

Joanna / others,

       Thoughts on the suggesting to add syntax highlighting to Octave code in the wiki ?

I don't have shell access; the right person to talk to about extension installation is jwe.

--Joanna

reply via email to

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