Possible Duplicate:
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.


There is tool source-highlight.

Alias example:

alias ccat="source-highlight --out-format=esc -o STDOUT -i"

I'm a fan of ccze, personally.

  • FYI, it's not available in CentOS 8 epel-release. – Akhil Jalagam Sep 1 '20 at 16:05

Vim is always a good option. Plus then you can make quick edits as needed.

Not the answer you're looking for? Browse other questions tagged or ask your own question.