Use vim to pretty-print code with syntax highlighting

vim +'hardcopy > output.ps' +q style.css 

July 21, 2012bashoneliners

Explanation

If you have syntax highlighting properly setup in vim, this command will pretty-print the specified file with syntax highlighting to output.ps.

If you prefer PDF, you can convert using ps2pdf output.ps.