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.

Brush Mode

Uses BashHighlighter with tree-sitter-bash. Tokyo Night color scheme:

CategoryWhat it colorsColor
Keywordsif, for, export, whilePurple
Commandsls, grep, echo, cdBlue
Strings"hello", 'world'Green
Numbers42, 3.14Orange
Variables$HOME, ${BAR}Yellow
Operators|, >, &&, ||Cyan
Comments# this is a commentGray

Automatic Switching

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