Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

marked as duplicate by manatwork, Mat, Mikel, Gilles, Michael Mrozek Jun 2 '12 at 6:05

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

superuser.com/questions/84426/… – rush May 30 '12 at 6:32
up vote 10 down vote accepted

There is tool source-highlight.

Alias example:

alias ccat="source-highlight --out-format=esc -o STDOUT -i"
share|improve this answer

I'm a fan of ccze, personally.

share|improve this answer

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

share|improve this answer
I like the vimpager project for this. – Hank Gay May 30 '12 at 15:10

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