You are here: Foswiki>Tasks Web>Item1402 (03 Apr 2009, AndrewJones)Edit Attach

Item1402: Italic line numbering out of order in SyntaxHighlightingPlugin

Priority: Low
Current State: No Action Required
Released In:
Target Release: n/a
Applies To: Extension
Component: SyntaxHighlightingPlugin
Reported By: IngoKappler
Waiting For: Main.AndrewJones
Last Change By: AndrewJones
When using line numbering and the code renders a comment (only tested with language ksh) then the line numbers are:

  1. rendered italic in front of the italic code comment (which already may be an issue)
  2. the rendered italic line numbers are moved 1 line down (out of order)

  • italic line numbering is out of order:
    italic line number out of order.png

-- IngoKappler - 01 Apr 2009

Yep the same thing happened to me as well, using similar ksh code.

All the plugin does is give the code to enscript, which returns the HTML. So the problem is with how enscript renders the code.

The enscript home page ( does not seem to have been updated since 2003, so I doubt this will ever be fixed.

I will add this to the documentation as a known issue, but unfortunately there is nothing much I can do.

-- AndrewJones - 01 Apr 2009

Thank you for the clarification. I changed the state of this task to No Action Required.

However, on enscript-1.6.1 was released Mon Jul 6 10:09:30 WET 1998 while enscript-1.6.2 was released Wed Mar 5 11:02:01 EET 2003. This shows that although there was no new release for several years, it doesn't mean there will not be another one at some point.

I then also found this page which seems more up to date (2008) and also lists a maintainer but there the latest version for download is 1.6.1. So I asked for clarification by sending this mail:
I just tried to figure out the latest enscript version and found on the version 1.6.2 which is not listed in the download areas of

So what would be the version to officially rely on?

Thank you,

What version are we actually using at Foswiki?

If someone feels to report that issue to enscript, it might be worth doing it nevertheless.

-- IngoKappler - 03 Apr 2009

Thanks Ingo. It would be interesting to see if you get a reply to your email, so at least we know the project is active.

enscript is installed on the server, so you can find out which version you are using by running enscript -V from the command line. For us, we have 1.6.4, which im guessing was taken from, where it was listed as 'Beta' in 2003 (under the 'News Flash' heading near the top).

$ enscript -V
GNU enscript 1.6.4
Copyright (C) 2003 Markku Rossi.
GNU enscript comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU enscript under the terms of the GNU
General Public License.  For more information about these matters, see
the files named COPYING.

I will add a report to the bugs database at once I can re-create it using enscript from the command line.

-- AndrewJones - 03 Apr 2009

ItemTemplate edit

Summary Italic line numbering out of order in SyntaxHighlightingPlugin
ReportedBy IngoKappler
Codebase 1.0.4
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Extension
Component SyntaxHighlightingPlugin
Priority Low
CurrentState No Action Required
WaitingFor AndrewJones
TargetRelease n/a
I Attachment Action Size Date Who Comment
italic_line_number_out_of_order.pngpng italic_line_number_out_of_order.png manage 2 K 01 Apr 2009 - 05:33 IngoKappler italic line numbering is out of order
Topic revision: r4 - 03 Apr 2009, AndrewJones
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy