CHROMA(1)

✨ NAME ✨

chroma β€” the general purpose syntax highlighting program, bestie πŸ’…βœ¨


🌸 SYNOPSIS 🌸

chroma [options] files ...

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so this manual page documents briefly the chroma command. That's the whole tea. πŸ“


πŸ‘‘ OPTIONS πŸ‘‘

So these programs follow the usual GNU command line syntax, with long options starting with two dashes (-). A summary of options is included below, and yes I'm giving you all of them, no skips, no crumbs left behind. 🫢

  • --help β€” Shows you context-sensitive help. Iconic behaviour honestly.
  • --list β€” Lists lexers, styles and formatters. Like a lil inventory moment.
  • --unbuffered β€” Do not buffer output. Zero patience, we love that for us.
  • --trace β€” Traces lexer states as they are traversed. Full main character surveillance arc πŸ”
  • --check β€” Do not format, check for tokenization errors instead. Just vibes-checking, no glow-up.
  • --filename=FILENAME β€” The filename to use for selecting a lexer when reading from stdin. Because stdin has no name of its own, poor thing 😭
  • -l, --lexer=autodetect β€” The lexer to use when formatting. Default is autodetect, and she's good at her job fr fr.
  • -s, --style=swapoff β€” The style to use for formatting. Default swapoff, slay.
  • -f, --formatter=terminal β€” The formatter to use. Defaults to terminal, as she should.
  • --html β€” Enable HTML mode (equivalent to --formatter html). Two ways to say the same thing, we contain multitudes.
  • --html-prefix=PREFIX β€” HTML CSS class prefix.
  • --html-styles β€” Output HTML CSS styles.
  • --html-only β€” Output HTML fragment. A snippet, not the whole saga.
  • --html-inline-styles β€” Output HTML with inline styles (no classes). Living inline, no class needed πŸ’…
  • --html-tab-width=8 β€” Set the HTML tab width. Default: 8.
  • --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. Default: 1.
  • --version β€” Show application version. Know your queen's era. πŸ‘‘

πŸ’€ BUGS πŸ’€

Found something cursed? See GitHub Issues: https://github.com/alecthomas/chroma/issues

ngl if something's broken, that's the place to spill, not the group chat πŸ™ˆ

and that's the whole CHROMA(1) manual page bestie β€” this is CHROMA(1) from the good people who brought you the chroma command, so go highlight something and eat, no cap πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from