bat - a cat clone with syntax highlighting and Git integration

How to view files with syntax highlight? Use bat instead of cat!


https://github.com/sharkdp/bat


Syntax highlighting

bat supports syntax highlighting for a large number of programming and markup
languages:

Syntax highlighting example

Git integration

bat communicates with git to show modifications with respect to the index
(see left side bar):

Git integration example

Show non-printable characters

You can use the -A/--show-all option to show and highlight non-printable
characters:

Non-printable character example

... and many other features

Leave a Reply

Your email address will not be published. Required fields are marked *