0.1.4 • Published 7 years ago
catc v0.1.4
catc
output syntax highlighting text with ANSI code in your terminal
CLI Usage
Output a file
$ catc package.jsonColor output of another program with piping.
$ cat index.js | catcCommand line options:
Usage: catc [options] [file]
Outputs a file or STDIN input with syntax highlighting
Options:
--language, -l Set the langugage explicitely
If omitted will try to auto-detect
--version, -v Show version number [boolean]
--help, -h Show help [boolean]Supported Languages
All languages of highlight.js are supported. Check a CI build for examples of all the different languages and their highlighting.
Contributing
The module is written in TypeScript and can be compiled with npm run build.
npm run watch starts tsc in watch mode.