CHROMA-V2(1)

💖 NAME 💖

chroma-v2 — a general purpose syntax highlighting program. it's literally giving your code a glow-up, bestie 💅✨


✨ SYNOPSIS ✨

chroma-v2 [options] files ...

🎀 DESCRIPTION 🎀

okay so, this manual page documents the chroma-v2 command, briefly. short and sweet, we love a low-effort king 👑


🌸 OPTIONS 🌸

this program follows the usual GNU command-line syntax, with long options starting with two dashes (`-'). a summary of the options is included below, and yes we're going through all of them, no skipping, i don't make the rules 🫶

  • –help — shows context-sensitive help. it's giving "i'm lost but make it ✨informative✨"
  • –list — lists lexers, styles and formatters. window shopping but for syntax, obsessed 😌
  • –unbuffered — do not buffer output. no waiting in the queue, it's main character energy, straight to the screen 💨
  • –trace — traces lexer states as they are traversed. backstage pass to the tokenizer fr fr 🔍
  • –check — don't format anything, check for tokenization errors instead. it's giving inspector mode 👀
  • –filename=FILENAME — the filename to use for selecting a lexer when you're reading from stdin. tell it who you are so it knows how to dress you 💁‍♀️
  • -l, –lexer=autodetect — the lexer to use when formatting. default is autodetect, so it'll clock your vibe on its own
  • -s, –style=swapoff — the style to use for formatting. default is swapoff 🎨
  • -f, –formatter=terminal — the formatter to use. default is terminal 🖥️
  • –html — enable HTML mode. this is equivalent to `–formatter html' 🌐
  • –html-prefix=PREFIX — the HTML CSS class prefix
  • –html-styles — output HTML CSS styles
  • –html-only — output an HTML fragment
  • –html-inline-styles — output HTML with inline styles (so, no classes) 💫
  • –html-tab-width=8 — set the HTML tab width. default is 8
  • –html-lines — include line numbers in the output 🔢
  • –html-lines-table — split line numbers and code into an HTML table
  • –html-lines-style=HTML-LINES-STYLE — style for line numbers
  • –html-highlight=N[:M][,...] — highlight these lines. spotlight moment, periodt ✨
  • –html-highlight-style=HTML-HIGHLIGHT-STYLE — style used for highlighting lines
  • –html-base-line=1 — base line number. default is 1
  • –version — show application version 🏷️

💀 BUGS 💀

found something cursed? See GitHub Issues: https://github.com/alecthomas/chroma/issues — go tell them, they wanna hear it 🐛


and that's the whole thing bestie, we ate and left no crumbs 💖 that was page CHROMA-V2(1), from the General Commands Manual section, okay byeeee 🦋🎀🌈

📦 where this page comes from