Bat

From wikinotes
Revision as of 21:43, 6 May 2023 by Will (talk | contribs) (→‎Usage)

Bat is a syntax highlighted cat.

Documentation

github https://github.com/sharkdp/bat

Usage

bat file.graphql

bat \
  -l go  `# syntaxhighlight for lang` \
  --file-name 'my-file.go'  `# set file title in result` \
  --theme 'Monokai Extended Light'

syntaxhighlighting

bat --list-languages
bat -l Python
echo '{ __schema { fields { name } } }' | bat -l graphql