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.
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.
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.
"privilege" comes from the Latin words for "private" and "law" (legal) and dates to feudal times. To "claim privilege" meant that you were above the laws that applied to the common people.
posted 11 years ago
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!
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.