Warp documentation
  • Getting Started
    • Quickstart Guide
    • What is Warp?
    • Supported Shells
    • Migrate to Warp
    • Keyboard Shortcuts
    • Changelog
  • Agents
    • Warp AI
    • Using Agents
      • Agent Conversations
      • Agent Context
      • Model Choice
    • Autonomy
      • Agent Permissions
      • Run to completion
    • Code
      • Codebase Context
      • Reviewing Agent Code
    • Active AI
    • Generate
    • Voice
    • AI FAQs
  • Terminal
    • Appearance
      • Themes
      • Custom Themes
      • Prompt
      • Input Position
      • Text, Fonts, & Cursor
      • Size, Opacity, & Blurring
      • Pane Dimming & Focus
      • Blocks Behavior
      • Tabs Behavior
      • App Icons
    • Blocks
      • Block Basics
      • Block Actions
      • Block Sharing
      • Block Find
      • Block Filtering
      • Background Blocks
      • Sticky Command Header
    • Modern Text Editing
      • Alias Expansion
      • Command Inspector
      • Syntax & Error Highlighting
      • Vim Keybindings
    • Command Entry
      • Command Corrections
      • Command Search
      • Command History
      • Synchronized Inputs
      • YAML Workflows
    • Command Completions
      • Completions
      • Autosuggestions
    • Command Palette
    • Session Management
      • Launch Configurations
      • Session Navigation
      • Session Restoration
    • Window Management
      • Global Hotkey
      • Tabs
      • Split Panes
    • Warpify
      • Subshells
      • SSH
      • SSH Legacy
    • More Features
      • Accessibility
      • Files, Links, & Scripts
      • Markdown Viewer
      • Working Directory
      • Smart-Select
      • Full-screen Apps
      • Notifications & Audible Bell
      • Settings Sync (Beta)
      • Quit Warning
      • URI Scheme
      • Linux
    • Comparisons
      • Performance
      • Terminal features
    • Integrations
  • Knowledge & Collaboration
    • Warp Drive
      • Notebooks
      • Workflows
      • Prompts
      • Environment Variables
      • Warp Drive on the Web
      • Warp Drive as Agent Mode Context
    • Model Context Protocol
    • Rules
    • Teams
    • Session Sharing
  • Privacy
    • Privacy
    • Secret Redaction
    • Network Log
  • Community
    • Refer a Friend & Earn Rewards
    • Warp Preview & Alpha Program
  • Support & Billing
    • Sending Feedback & Logs
    • Plans & Pricing
    • Updating Warp
    • Using Warp Offline
    • Logging out & Uninstalling
    • Known Issues
    • Troubleshooting Login Issues
    • Open Source Licenses
Powered by GitBook
On this page
  • What is Syntax Highlighting
  • How to access Syntax Highlighting
  • How to enable/disable Syntax Highlighting
  • How Syntax Highlighting Works
  • What is Error Underlining
  • How to access Error Underlining
  • How to enable/disable Error Underlining
  • How Error Underlining works

Was this helpful?

  1. Terminal
  2. Modern Text Editing

Syntax & Error Highlighting

Syntax Highlighting differentiate between sub-commands, options/flags, arguments, and variables. Error Highlighting automatically underlines any invalid commands with a dashed red underline.

PreviousCommand InspectorNextVim Keybindings

Last updated 16 days ago

Was this helpful?

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.

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 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, search for the "Syntax Highlighting" option and click it (or press enter) to enable/disable.

  • Through Settings > Features > Editor , toggle "Syntax highlighting for commands"

How Syntax Highlighting Works

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.

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, search for the "Syntax Highlighting" option and click it (or press enter) to enable/disable.

  • Through Settings > Features > Editor , toggle "Error underlining for commands"

How Error Underlining works

Syntax Highlighting Demo
Error Underlining Demo