How can I display syntax highlighting on a file?
Is there any application like
cat, but with color output?
I'd like to view my files with colors like in any IDE's editor.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
There is tool source-highlight.
alias ccat="source-highlight --out-format=esc -o STDOUT -i"
I'm a fan of ccze, personally.
Vim is always a good option. Plus then you can make quick edits as needed.