librelist archives

« back to archive

Syntax highlighting is broken in code samples

Syntax highlighting is broken in code samples

From:
Hasnain Lakhani
Date:
2011-06-18 @ 21:14
Hi,

A lot of the code samples seem to have broken syntax highlighting. For
example, the first code sample on this page
http://lamsonproject.org/docs/deferred_processing_to_queues.html is almost
entirely colored orange, indicating a string, even though it's not supposed
to be that way. Having seen a few code samples, I think the problem is that
somehow the quotes have been replaced with their pretty HTML versions. The
following string replacements should do (I think):

’ -> '
” -> "

Hopefully this should work, it would definitely make reading the code
samples more pleasing to the eye.

- Hasnain

Re: [lamson] Syntax highlighting is broken in code samples

From:
Justin Steward
Date:
2011-06-18 @ 22:43
Also, @ and [ ] disappear from some examples too. Pretty sure I spotted a
bug in fossil about it, would be nice to see it fixed.
On 19/06/2011 7:15 AM, "Hasnain Lakhani" <m.hasnain.lakhani@gmail.com>
wrote:
> Hi,
>
> A lot of the code samples seem to have broken syntax highlighting. For
> example, the first code sample on this page
> http://lamsonproject.org/docs/deferred_processing_to_queues.html is almost
> entirely colored orange, indicating a string, even though it's not
supposed
> to be that way. Having seen a few code samples, I think the problem is
that
> somehow the quotes have been replaced with their pretty HTML versions. The
> following string replacements should do (I think):
>
> ’ -> '
> ” -> "
>
> Hopefully this should work, it would definitely make reading the code
> samples more pleasing to the eye.
>
> - Hasnain