Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


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

    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.