nu-highlight

For strings.

Syntax highlight the input string.

Command Type

built-in

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

Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.