Syntax & Error Highlighting
# Syntax & Error Highlighting import VideoEmbed from '@components/VideoEmbed.astro'; ## What is syntax highlighting Warp supports Syntax Highlighting in the [Input Editor.](/terminal/editor/) It colors each part of a command to help differentiate between sub-commands, options/flags, arguments, and variables. :::caution Newly installed apps or newly created aliases will not trigger syntax highlighting until you open a new Warp session (new window, tab, or pane), even if you `source` the RC files in the current session. ::: ### How to access syntax highlighting When Syntax Highlighting is enabled, Warp's [Input Editor](/terminal/editor/) automatically recognizes each part of the command as you type it into the Input Editor, and syntactically highlight them. ### How to enable/disable syntax highlighting Syntax highlighting is enabled by default, to toggle it: * Through the [Command Palette](/terminal/command-palette/), search for the "Syntax Highlighting" option and click it (or press enter) to enable/disable. * Through **Settings** > **Features** > **Terminal Input** , toggle "Syntax highlighting for commands" ### How syntax highlighting works <VideoEmbed url="https://www.loom.com/share/87b15de13ee9407b98a24f1a31835784?hide_owner=true&hide_share=true&hide_title=true&hideEmbedTopBar=true" title="Syntax Highlighting Demo" /> ## What is error underlining Warp highlights errors in commands that are typed within the [Input Editor](/terminal/editor/) e.g. if the binary for the command you've typed does not exist. :::caution Newly installed apps or newly created aliases will trigger error underlining until you open a new Warp session (new window, tab, or pane), even if you `source` the RC files in the current session. ::: ### How to access error underlining When Error Underlining is enabled, Warp automatically underlines any invalid commands with a dashed red underline. ### How to enable/disable error underlining Error underlining is enabled by default, to toggle it: * Through the [Command Palette](/terminal/command-palette/), search for the "Syntax Highlighting" option and click it (or press enter) to enable/disable. * Through **Settings** > **Features** > **Terminal Input** , toggle "Error underlining for commands" ### How error underlining works <VideoEmbed url="https://www.loom.com/share/7721e06ed4aa4e1380abae4f5827ef6f?hide_owner=true&hide_share=true&hide_title=true&hideEmbedTopBar=true" title="Error Underlining Demo" />Color-code commands and underline errors in real time as you type in Warp's input editor.
What is syntax highlighting
Section titled “What is syntax highlighting”Warp supports Syntax Highlighting in the Input Editor. It colors each part of a command to help differentiate between sub-commands, options/flags, arguments, and variables.
How to access syntax highlighting
Section titled “How to access syntax highlighting”When Syntax Highlighting is enabled, Warp’s Input Editor automatically recognizes each part of the command as you type it into the Input Editor, and syntactically highlight them.
How to enable/disable syntax highlighting
Section titled “How to enable/disable syntax highlighting”Syntax highlighting is enabled by default, to toggle it:
- Through the Command Palette, search for the “Syntax Highlighting” option and click it (or press enter) to enable/disable.
- Through Settings > Features > Terminal Input , toggle “Syntax highlighting for commands”
How syntax highlighting works
Section titled “How syntax highlighting works”What is error underlining
Section titled “What is error underlining”Warp highlights errors in commands that are typed within the Input Editor e.g. if the binary for the command you’ve typed does not exist.
How to access error underlining
Section titled “How to access error underlining”When Error Underlining is enabled, Warp automatically underlines any invalid commands with a dashed red underline.
How to enable/disable error underlining
Section titled “How to enable/disable error underlining”Error underlining is enabled by default, to toggle it:
- Through the Command Palette, search for the “Syntax Highlighting” option and click it (or press enter) to enable/disable.
- Through Settings > Features > Terminal Input , toggle “Error underlining for commands”