Skip to content
BENIBIX Learn

CLAUDE_CODE_SYNTAX_HIGHLIGHT

AI⌨️ Claude CodeConfiguration

Also known as CLAUDE_CODE_SYNTAX_HIGHLIGHT=false

Set to false, it turns off the colors in diffs.

Think of it like

It is like you print a page in black and white.

Example

Emma's terminal theme made diff colors hard to read. She sets this, and the diffs show in plain text.

Why it matters

Colors that clash with a theme can make a diff harder to read than plain text.

Definition

CLAUDE_CODE_SYNTAX_HIGHLIGHT set to false turns off colors in diffs. Use it when those colors clash with your terminal. Code blocks and file views keep their colors. To turn those off too, use the matching setting.

Example code

bash
export CLAUDE_CODE_SYNTAX_HIGHLIGHT=false
claude
Plain diffs with no colors.

Common mistake

Expecting code blocks to lose color too. Only diffs change. Use the setting for the rest.

Key takeaways

  1. 1
    false turns off. Diff colors.
  2. 2
    Code blocks keep color. Use the setting.
  3. 3
    For clashing themes. Readability.

Compare