• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Printing in eclipse 3.4.0

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I printed a build.xml file today via eclipse, and the font used for the print job was really large (the document was five printed pages via eclipse, but the same document is only two printed pages via an ordinary text editor).

I am trying to figure out where to configure the font size used for printing. I've tried Preferences > General > Appearance > Colors and Fonts. I've also tried Preferences > General > Editors > Text Editors, and Preferences > Ant > Editor > Formatter, all without luck.

Deb
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd like to know this too. I've hunted all over for printer preferences regarding things like font, header, etc in Eclipse, and can find nothing. It seems odd that a tool that is so feature-heavy would completely lack printer configuration options, but perhaps this is just a blind spot in the Eclipse community.
 
Saloon Keeper
Posts: 22503
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apparently they argue a lot about it. For a LONG time, the File/Print menu was permanently grayed-out on Linux versions. I ended up setting up Enscript as an external command, and since it does high-quality syntax highlighting, it's still what I usually use.

Personally, I think that they ought to just make the printing function be pluggable if they can't do any better than that. Feel free to complain to them.
 
deb platt
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd like to thank Tim for mentioning that he's using enscript. I just installed it, and it seems to work great.

A co-worker and I are both using eclipse 3.4.0. When he prints out code, it looks fine - just like I'd like to get. When I print out code, it's in a humogous font. The apparent difference is that he's using eclipse on a Windows machine, and I'm using Ubuntu 7.10. After further discussion yesterday, he googled around and said eclipse is supposed to be using my default system fonts. I double checked my font settings under Appearance Preferences > Fonts, and everything was set a 10pt. I'm guessing that's for what's displayed on my screen. Not sure if there's some other setting for what's printed.

Anyway enscript is meeting my current needs. Thanks!

Deb
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Great tip concerning enscript !

I use the following external tools configuration:

Working directory:
${container_loc}

Arguments:
--header="$n $D $C" -c -C -f Courier8 -h -M A4 -p ${workspace_loc}/${project_name}/enscript/${resource_name}.ps -w PostScript -X latin1 --word-wrap ${resource_loc}

Which print the currently opened class file to a folder "enscript" in the project root and names it <current_name>.ps. The file has the class name ($n), current date ($D) and current time ($C) as page header.

Best regards,

Stijn
 
Today you are you, that is turer than true. There is no one alive who is youer than you! - Seuss. Tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic