EclipsE
From MyLinuxNotes
Just started using this cool tool.
Printing Problems
One problem with running Eclipse on Linux is that printing doesn't work in the GTK version and the motif version prints ugly. This will work on OS X as well.
To get around this first create two scripts:
#!/bin/sh # file: fancyPrint.sh enscript -E --color --fancy-header=emacs $1
and
#!/bin/sh
# file: fancyPrintAll.sh
# change cpp and/or h to the extensions you want or just *
enscript -E --color --fancy-header=emacs $1/*.{cpp,h}
Then you need to add two External Tools:
Run -> External Tools -> External Tools
In the dialog box do the following:
- Click on 'Program' in the left pane
- Click on 'New' below
- Enter
Printin the 'Name' box - Enter the path to
fancyPrint.shin the 'Location' box - Click on the 'Variables' button for the 'Arguments' box and choose 'resource_loc'
- Click 'Apply'
Then:
- Click on 'Program' in the left pane
- Click on 'New' below
- Enter
Print Allin the 'Name' box - Enter the path to
fancyPrintAll.shin the 'Location' box - Click on the 'Variables' button for the 'Arguments' box and choose 'project_loc'
- Click 'Apply' and 'Close'
Now to print the current document:
Run -> External Tools -> Print
To print all the documents in your current project:
Run -> External Tools -> Print All
