10

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.

kravemir
  • 4,014
  • 4
  • 33
  • 48
  • http://superuser.com/questions/84426/are-there-any-options-to-let-cat-output-with-color – rush May 30 '12 at 06:32

3 Answers3

13

There is tool source-highlight.

Alias example:

alias ccat="source-highlight --out-format=esc -o STDOUT -i"
anlar
  • 4,096
  • 3
  • 30
  • 54
4

I'm a fan of ccze, personally.

Shadur
  • 30,641
  • 11
  • 58
  • 69
2

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

jbranchaud
  • 321
  • 1
  • 2
  • 7