Shannon logo Shannon

Syntax Highlighting

Each mode has its own syntax highlighter that activates automatically when you switch modes.

Nu Mode

Uses nushell's native NuHighlighter. Full nushell syntax awareness — keywords, commands, strings, variables, pipes, types, and errors are all colored according to your $env.config.color_config.

See Nushell theming docs for customization.

Bash Mode

Uses BashHighlighter with tree-sitter-bash. Colors are read from your nushell color config so both modes match:

CategoryWhat it colors
Keywords if, for, export, while
Commands ls, grep, echo, cd
Strings "hello", 'world'
Variables $HOME, ${BAR}
Operators |, >, &&, ||
Comments # this is a comment

Automatic Switching

When you press Shift+Tab, the highlighter switches immediately. The next keystroke uses the new mode's highlighter.