# syntaxHighlightingDisabled

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

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** syntaxHighlightingDisabled setting

## Think of it like

It is like writing with one black pen. You do not use a box of colors.

## Definition

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.

## Example code

```json
{
  "syntaxHighlightingDisabled": true
}
```

Show code without colors.

## Why it matters

Colors help most people read code, but they get in the way of some setups.

## Common mistake

Changing the theme to fix code colors. This key is the one that turns them off.

## Three principles

- **Turns off code colors.** In diffs too.
- **Off by default.** Colors show.
- **Helps screen readers.** Plain text.

## Related terms

- [theme Setting](https://learn.benibix.com/term/ai/theme-setting)
- [prefersReducedMotion](https://learn.benibix.com/term/ai/prefers-reduced-motion-setting)

## 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/syntax-highlighting-disabled-setting
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-16
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
