Sample Header Ad - 728x90

How can I display syntax highlighting on a file?

53 votes
5 answers
16854 views
Is there a variant of cat that outputs syntax-highlighted lines of code when used on a source file? An idea: maybe vi[m] or another editor can be asked to dump the syntax-highlighted contents of said files to stdout and exit immediately?
Asked by Paolo (1605 rep)
Aug 26, 2011, 02:32 AM
Last activity: Mar 22, 2021, 03:20 AM