Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
    
superuser.com/questions/84426/… –  rush May 30 '12 at 6:32
add comment

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.

3 Answers

up vote 7 down vote accepted

There is tool source-highlight.

Alias example:

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

I'm a fan of ccze, personally.

share|improve this answer
add comment

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

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

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