rcl/docs/rcl_highlight.md
Ruud van Asseldonk 994df536df Delete builtins from highlight module
Let's not put too much effort in the highlight command, the fmt command
prints in color and should be preferred anyway.
2025-03-15 19:58:19 +01:00

714 B

rcl highlight

rcl highlight [--] [<file>]

Description

Read an RCL expression from <file>, and print a syntax-highlighted result to stout. When <file> is -, read from stdin instead. When no file is specified, the input defaults to stdin.

Note that rcl format may be a more useful tool. It also highlights the document, but because it acts on the syntax tree rather than token stream, it can highlight more details than rcl highlight, such as types, and key-value pairs in dicts. Of course, it does also format the output.

Options

rcl highlight supports all of the global options, in particular --color to select the color mode.