|Re: Line Numbers when Printing [message #295913 is a reply to message #295879]
||Mon, 12 December 2005 05:07
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 #296090 is a reply to message #295879]
||Wed, 14 December 2005 19:58
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!
> Is there any way when I print a file to the printer, I can also have
> it display the line numbers?
Powered by FUDForum
. Page generated in 0.03311 seconds