# CLAUDE_CODE_SYNTAX_HIGHLIGHT

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

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** CLAUDE_CODE_SYNTAX_HIGHLIGHT=false

## Think of it like

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

## 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

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

## Example code

```bash
export CLAUDE_CODE_SYNTAX_HIGHLIGHT=false
claude
```

Plain diffs with no colors.

## Why it matters

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

## Common mistake

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

## Three principles

- **false turns off.** Diff colors.
- **Code blocks keep color.** Use the setting.
- **For clashing themes.** Readability.

## Related terms

- [/diff Command](https://learn.benibix.com/term/ai/diff-command)
- [Syntax Highlighting](https://learn.benibix.com/term/development/syntax-highlighting)

## Told apart from

- [syntaxHighlightingDisabled vs CLAUDE_CODE_SYNTAX_HIGHLIGHT](https://learn.benibix.com/compare/syntax-highlighting-disabled-setting-vs-claude-code-syntax-highlight-variable): 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.

---

Source: https://learn.benibix.com/term/ai/claude-code-syntax-highlight-variable
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
