Skip to content
BENIBIX Learn

syntaxHighlightingDisabled vs CLAUDE_CODE_SYNTAX_HIGHLIGHT

People think setting CLAUDE_CODE_SYNTAX_HIGHLIGHT to false turns off all code colors. It only does it in diffs. Code blocks and file views keep their colors. The syntaxHighlightingDisabled key, set to true, turns color off in all three. Use the key when the colors clash with your theme, or slow down a screen reader.

AI⌨️ Claude Code

syntaxHighlightingDisabled

The key that shows code as plain text, with no colors.

syntaxHighlightingDisabled is a settings key that turns off the colors Claude Code gives to code. By default it colors code in diffs, code blocks and file views. Set the key to true to show plain text. That helps when the colors clash with your theme, or slow down a screen reader.

Example
Lucy uses a screen reader, and the colored code makes it slow. She sets syntaxHighlightingDisabled to true.
Why it matters
Colors help most people read code, but they get in the way of some setups.
Full entry
AI⌨️ Claude Code

CLAUDE_CODE_SYNTAX_HIGHLIGHT

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

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
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.
Full entry

In one line

syntaxHighlightingDisabled
The key that shows code as plain text, with no colors.
CLAUDE_CODE_SYNTAX_HIGHLIGHT
Set to false, it turns off the colors in diffs.