Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Line Numbers when Printing
Line Numbers when Printing [message #295879] Fri, 09 December 2005 16:04 Go to next message
Eclipse UserFriend
Originally posted by: anthony.santinello.experian.com

Is there any way when I print a file to the printer, I can also have it
display the line numbers?
Re: Line Numbers when Printing [message #295913 is a reply to message #295879] Mon, 12 December 2005 10:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

Not directly in Eclipse, no. However, other utilities such as 'a2ps' allow you to put page numbers on (PostScript) printer files, which you can then transform to PDF with ps2pdf or pspdf (or print directly if you have a PostScript compatible printer).

a2ps --line-numbers=5 Test.java --output=- | ps2pdf - Test.pdf

If you're running Windows, both of these are available in Cygwin under the package names 'a2ps' and 'ghostscript' respectively.
Re: Line Numbers when Printing [message #295914 is a reply to message #295879] Mon, 12 December 2005 10:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vlad_dumitrescu.hotmail.com

"Tony" <anthony.santinello@experian.com> wrote in message
news:6e0e05921fb6035c4418909b411dae3d$1@www.eclipse.org...
> Is there any way when I print a file to the printer, I can also have it
> display the line numbers?

Not yet. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=19602

regards,
/Vlad
Re: Line Numbers when Printing [message #296090 is a reply to message #295879] Thu, 15 December 2005 00:58 Go to previous message
Eclipse UserFriend
Originally posted by: varavamu.yahoo.com

You can also use the java2html plugin - one of the options is to print
line numbers in the generated html file. As an added bonus, if you are
printing to a color printer - you also get syntax coloring. Once you get
this html file - you can open it in any browser and print from there!

hth,
Vijay

Tony wrote:

> Is there any way when I print a file to the printer, I can also have
> it display the line numbers?
>
Previous Topic:"Gdk-CRITICAL" Error message
Next Topic:How to define groups in a preference page?
Goto Forum:
  


Current Time: Thu Apr 25 18:57:53 GMT 2024

Powered by FUDForum. Page generated in 0.03521 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top