Code block syntax highlighting renders as chaotic rainbow/kaleidoscope colors
Description
When Claude outputs bash/shell commands in fenced code blocks, the syntax highlighting in the terminal renderer produces a chaotic, rainbow-colored "kaleidoscope" effect that makes the text difficult to read.
Screenshot
The highlighting fragments commands into many different colors. For example, a command like:
docker rm -f dynamodb-local dynamodb-admin localstack
Renders with words split across multiple colors (green, yellow, cyan, red, etc.) in a pattern that appears random rather than meaningful.
Expected Behavior
Syntax highlighting should either:
- Use a consistent, readable color scheme for bash commands
- Apply minimal highlighting that aids readability
- Allow users to disable syntax highlighting for code blocks
Actual Behavior
Code blocks display with fragmented multi-color highlighting that makes commands harder to read than plain monochrome text.
Environment
- Platform: Windows 11
- Terminal: Claude Code CLI
- Date observed: 2026-01-26
Workaround
Commands can be copied correctly despite the visual issue - the underlying text is correct.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗