mirror of
https://github.com/ruuda/rcl.git
synced 2025-12-23 04:47:19 +00:00
Let's not put too much effort in the highlight command, the fmt command prints in color and should be preferred anyway.
714 B
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.