nu-highlight
for strings
Syntax highlight the input string.
Signature
> nu-highlight {flags}
Flags
--reject-garbage, -r
: Return an error if invalid syntax (garbage) was encountered
Input/output types:
input | output |
---|---|
string | string |
Examples
Describe the type of a string
> 'let x = 3' | nu-highlight