Perl syntax highlighting
Zbigniew Łukasiak
zzbbyy at gmail.com
Fri Oct 26 10:36:52 BST 2012
On Fri, Oct 26, 2012 at 9:43 AM, William Blunn <bill+london.pm at blunn.org> wrote:
> Hello London Perl Mongers,
>
> What do people reckon to use when wanting to do Perl syntax highlighting
> (Perl ? HTML), such as one might want to use in one's source code repository
> browser.
>
> There is an existing repository browser installation at $employer which does
> Perl syntax highlighting, but I've found the existing highlighter to be a
> bit mediocre in as much as it doesn't handle some rather common cases. The
> people who look after the repository browser have been working on improving
> the syntax highlighter, and have so far managed to fix:
>
> * a single quote in POD apparently being interpreted as the start of a
> string literal
>
> * a single quote in a comment apparently being interpreted as the start of a
> string literal
>
> but I am still suffering from
>
> * a single quote in q{...} string apparently being interpreted as the start
> of a string literal
>
> So I was wondering if there was a known good Perl syntax highligher. All
> suggestions gratefully received; suggestions of the form "FooHighLight
> version >= 2.71828" score bonus points.
For https://github.com/zby/Nblog I use
http://alexgorbatchev.com/SyntaxHighlighter/ - it has the nice feature
that the code remains text, but I never tested it too exhaustively.
--
Zbigniew Lukasiak
http://brudnopis.blogspot.com/
http://perlalchemy.blogspot.com/
More information about the london.pm
mailing list