Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

programming:print_source_code [2013/12/16 13:51] (aktuell)
idefix angelegt
Zeile 1: Zeile 1:
 +======  Print Source Code  ======
 +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 '*.js' -or -name '*.json' -or -name '*.html'\
 +|xargs enscript -r -2 --file-align=1 --highlight --color --line-numbers -o - |ps2pdf - files.pdf
 +-r print landscape<br>
 +-2 two pages by side<br>
 +--file-align=1 every file on one page<br>
 +--highlight and --color highlight the code with color<br>
 +--line-numbers include line numbers<br>
 +-o - print the output to stdout<br>
programming/print_source_code.txt · Zuletzt geändert: 2013/12/16 13:51 von idefix