programming:print_source_code
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