Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 680 Bytes

File metadata and controls

15 lines (12 loc) · 680 Bytes

This follows the tutorial by Carl Tashian

Basically, using the enscript program from command line. One has to use the following command

enscript -1rG --line-numbers -p out.ps --highlight=python -c inputfile.py

Enscript has a lot of options. Here are the most valuable options:

  • -1 -2 -3 -4 number of columns per page
  • -r rotate (landscape mode)
  • -G fancy header (with filename, date & time)
  • --color=1 if you have a color printer
  • -w html if you want HTML output instead of PostScript
  • --help-highlight will show which languages have syntax highlighting available