Course lesson

Use Bat to Print a File with Syntax Highlighting in the terminal

bat is a cat replacement that adds syntax highlighting to file previews.

Duration
1 min
Access
Free
Transcript
Available

bat is a cat replacement that adds syntax highlighting to file previews.

You can install bat with brew install bat

Next, you simply call bat my_file.md to print out the contents.