CmdID

CmdID / Commands

chroma

A general-purpose syntax highlighter. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

A general-purpose syntax highlighter. The --lexer option is usually unnecessary, as it will be automatically determined based on the file extension.

Highlight source code from a file with the Python lexer and output to stdout

chroma --lexer python path/to/source_file.pyIdentify

Highlight source code from a file with the Go lexer and output to an HTML file

chroma --lexer go --formatter html path/to/source_file.go >path/to/target_file.htmlIdentify

Highlight source code from stdin with the C++ lexer and output to an SVG file, using the Monokai style

command | chroma --lexer c++ --formatter svg --style monokai >path/to/target_file.svgIdentify

List available lexers, styles, and formatters

chroma --listIdentify