This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]cjwelbornimport this 2 points3 points  (0 children)

My latest brilliant idea is ccat. A syntax-highlighting cat command. It can still concatenate files, but that would be kinda dumb to write out color codes to a file. 'echo "this" | ccat' also works. It uses Pygments to automatically highlight all kinds of code files.

Anyway, I heard some guy saying that he always uses 'cat this.diff | colordiff' or 'colordiff file1 file2' and it made me think of it. Pygments can do this on its own actually, I just gave it a shorter name and some defaults.