From 09aad6f8ea4b5692e0663a6a1f79251c2ca79dac Mon Sep 17 00:00:00 2001 From: Christopher Allen Lane Date: Sun, 15 Feb 2026 07:55:37 -0500 Subject: [PATCH] docs: document supported syntax values in README Adds a note explaining that syntax highlighting is powered by Chroma, with a link to Chroma's supported languages list. Closes #766 Co-Authored-By: Claude Opus 4.6 --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 95dc510..49af518 100644 --- a/README.md +++ b/README.md @@ -129,6 +129,10 @@ tags: [ array, map ] const squares = [1, 2, 3, 4].map(x => x * x); ``` +Syntax highlighting is provided by [Chroma][], and the `syntax` value may be +set to any lexer name that Chroma supports. See Chroma's [supported +languages][] for a complete list. + The `cheat` executable includes no cheatsheets, but [community-sourced cheatsheets are available][cheatsheets]. You will be asked if you would like to install the community-sourced cheatsheets the first time you run `cheat`. @@ -189,5 +193,7 @@ Additionally, `cheat` supports enhanced autocompletion via integration with [Releases]: https://github.com/cheat/cheat/releases [cheatsheets]: https://github.com/cheat/cheatsheets [completions]: https://github.com/cheat/cheat/tree/master/scripts -[fzf]: https://github.com/junegunn/fzf -[go]: https://golang.org +[Chroma]: https://github.com/alecthomas/chroma +[supported languages]: https://github.com/alecthomas/chroma#supported-languages +[fzf]: https://github.com/junegunn/fzf +[go]: https://golang.org