CLAUDE_CODE_SYNTAX_HIGHLIGHT
Updated by Alex Sorokoletov
CLAUDE_CODE_SYNTAX_HIGHLIGHT is a Claude Code environment variable: Disable syntax highlighting when set to false. Removed in v2.1.286, so current releases ignore it. It is listed in the official reference.
| Status | Removed in v2.1.286 |
|---|---|
| Added | Present since v2.1.69 or earlier |
| Category | Other |
| Official docs | Listed |
How to set it
For one session, export it in the shell that starts Claude Code:
export CLAUDE_CODE_SYNTAX_HIGHLIGHT=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"CLAUDE_CODE_SYNTAX_HIGHLIGHT": "<value>"
}
}Release notes that mention it
Related variables
ANTHROPIC_BETAS: Comma-separated beta feature headers.ANTHROPIC_CUSTOM_HEADERS: Custom HTTP headers (newline-separated Key: Value).ANTHROPIC_FEDERATION_RULE_IDANTHROPIC_ORGANIZATION_IDANTHROPIC_WORKSPACE_IDBETA_TRACING_ENDPOINT: Custom endpoint for beta tracing.CLAUDE_AFK_COUNTDOWN_MSCLAUDE_AI_ORIGIN: Overrides the base URL for Claude AI authentication endpoints.
Frequently asked questions
What does CLAUDE_CODE_SYNTAX_HIGHLIGHT do?
Disable syntax highlighting when set to false
Which Claude Code version has CLAUDE_CODE_SYNTAX_HIGHLIGHT?
Removed in v2.1.286, so current releases ignore it.
How do I set CLAUDE_CODE_SYNTAX_HIGHLIGHT?
Export it before starting Claude Code (export CLAUDE_CODE_SYNTAX_HIGHLIGHT=value), or add it to the "env" object in ~/.claude/settings.json to apply it to every session.
All variables, searchable: Claude Code environment variables.