Scroll to navigation

CHROMA-V2(1) General Commands Manual CHROMA-V2(1)

NAME

chroma-v2 - general purpose syntax highlighting program

SYNOPSIS

chroma-v2 [options] files ...

DESCRIPTION

This manual page documents briefly the chroma-v2 command.

OPTIONS

This program follow the usual GNU command-line syntax, with long options starting with two dashes ('-'). A summary of options is included below.

Show context-sensitive help.
List lexers, styles and formatters.
Do not buffer output.
Trace lexer states as they are traversed.
Do not format, check for tokenization errors instead.
Filename to use for selecting a lexer when reading from stdin.
Lexer to use when formatting.
Style to use for formatting.
Formatter to use.
Enable HTML mode (equivalent to '--formatter html').
--html-prefix=PREFIX
HTML CSS class prefix.
--html-styles
Output HTML CSS styles.
--html-only
Output HTML fragment.
--html-inline-styles
Output HTML with inline styles (no classes).
--html-tab-width=8
Set the HTML tab width.
--html-lines
Include line numbers in output.
--html-lines-table
Split line numbers and code in a HTML table
--html-lines-style=HTML-LINES-STYLE
Style for line numbers.
--html-highlight=N[:M][,...]
Highlight these lines.
--html-highlight-style=HTML-HIGHLIGHT-STYLE
Style used for highlighting lines.
--html-base-line=1
Base line number.
Show application version.

BUGS

See GitHub Issues: https://github.com/alecthomas/chroma/issues