I’d recommend pygmentize
from the python package python-pygments
. You may want to define the following handy alias (unless you use ccat
from the ccrypt package).
alias ccat="pygmentize -g"
And if you want line numbers:
alias ccat="pygmentize -g -O style=colorful,linenos=1"
Add one of these above commands to ~/.bash_aliases
for permanent effect