Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
— |
programming:print_source_code [2013/12/16 13:51] (aktuell) idefix angelegt |
||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== | ||
+ | To have a nice output the following command can be used to generate a nice files.pdf with the complete project print in highlighted colors: | ||
+ | < | ||
+ | find . -name ' | ||
+ | |xargs enscript -r -2 --file-align=1 --highlight --color --line-numbers -o - |ps2pdf - files.pdf | ||
+ | </ | ||
+ | < | ||
+ | -r print landscape< | ||
+ | -2 two pages by side< | ||
+ | --file-align=1 every file on one page< | ||
+ | --highlight and --color highlight the code with color< | ||
+ | --line-numbers include line numbers< | ||
+ | -o - print the output to stdout< | ||
+ | </ |