bat supports syntax highlighting for a large number of programming and markup languages: bat communicates with git to show modifications with respect to the index (see left side bar): You can use the -A/–show-all option to show and highlight non-printable characters:

Source: sharkdp/bat: A cat(1) clone with wings.

Nice!