Pygments is often used for syntax highlighting on HTML, but it also has a formatter other than HTML.
If you want to view the contents of a file on the terminal, but don't want to launch a full-screen editor such as vim, run pygments filename
and the file will be syntax highlighted and displayed on the terminal.
Recommended Posts