mediawiki syntax highlighting plugins

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

mediawiki syntax highlighting plugins

Johannes Ahlmann
hi,

i've noted that the new haskellwiki has dropped syntax highlighting
support for haskell code fragments. while i think that full highlighting
might be overkill, at least different color markup of code and comments
would certainly be nice.

investigating the options for syntax highlighting in mediawiki i found
the following two extensions using GNU enscript:

http://www.wickle.com/wiki/index.php/Syntax_Highlight_extension
http://www.milab.is.tsukuba.ac.jp/~bushuhui/index.php?title=Enhanced_syntax_highlight_extension_for_MediaWiki

where the second is an alteration of the first, with haskell support
already added.

an alternative would be geshi (http://qbnz.com/highlighter/) for which a
mediawiki plugin also exists
(http://meta.wikimedia.org/wiki/GeSHiHighlight), but it says on the
geshi site "GeSHi supports PHP5 and Windows". and i'm not clear whether
they mean it _also_ supports those options or exclusively.

it would be cool if one of the wiki maintainers could look into this
matter and possibly install/setup one of the above extensions.

thank you,

Johannes Ahlmann

_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: mediawiki syntax highlighting plugins

Jason Dagit
On 2/28/06, Johannes Ahlmann <[hidden email]> wrote:

> hi,
>
> i've noted that the new haskellwiki has dropped syntax highlighting
> support for haskell code fragments. while i think that full highlighting
> might be overkill, at least different color markup of code and comments
> would certainly be nice.
>
> investigating the options for syntax highlighting in mediawiki i found
> the following two extensions using GNU enscript:
>
> http://www.wickle.com/wiki/index.php/Syntax_Highlight_extension

I'm no fan of enscript.  I tried it in the past and found it to be lacking.

> http://www.milab.is.tsukuba.ac.jp/~bushuhui/index.php?title=Enhanced_syntax_highlight_extension_for_MediaWiki
>
> where the second is an alteration of the first, with haskell support
> already added.
>
> an alternative would be geshi (http://qbnz.com/highlighter/) for which a
> mediawiki plugin also exists
> (http://meta.wikimedia.org/wiki/GeSHiHighlight), but it says on the
> geshi site "GeSHi supports PHP5 and Windows". and i'm not clear whether
> they mean it _also_ supports those options or exclusively.

It works in linux with php4 I know this because my website uses it:
http://codersbase.com/index.php/Geshi_haskell

I haven't gotten around to sending a copy to the geshi devs.  Feel
free to hackup the version I have, replace my name in the comments,
send it in the geshi devs or whatever :)   I just hope someone finds
it useful.  It's probably a bit buggy.  For one thing, I have a bug
that prevents symbols from getting highlighted correctly.

Thanks,
Jason
_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: mediawiki syntax highlighting plugins

Ashley Yakeley
In reply to this post by Johannes Ahlmann
Johannes Ahlmann wrote:

> an alternative would be geshi (http://qbnz.com/highlighter/) for which a
> mediawiki plugin also exists
> (http://meta.wikimedia.org/wiki/GeSHiHighlight), but it says on the
> geshi site "GeSHi supports PHP5 and Windows". and i'm not clear whether
> they mean it _also_ supports those options or exclusively.
>
> it would be cool if one of the wiki maintainers could look into this
> matter and possibly install/setup one of the above extensions.

I'll look into GeSHi.

_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe