Pretty print javascript with enscript

For future reference, the following command will format a javascript source file as a 2-up syntax highlighted postscript file (you can open this in preview.app).

enscript -2Gr --color -Ejavascript file.js -ofile.ps

Leave a Reply

You must be logged in to post a comment.