[FEATURE]: Config option to disable syntax highlighting in diffs #4773

Open
opened 2026-02-16 17:45:23 -05:00 by yindo · 1 comment
Owner

Originally created by @ibrahimsag on GitHub (Jan 11, 2026).

Originally assigned to: @rekram1-node on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Request

When viewing diffs in the TUI, syntax highlighting is always enabled. For some users/terminals, disabling syntax highlighting would improve readability.

Proposed solution:

Add a tui.diff_syntax boolean config option (default: true). When set to false, diffs render without syntax
highlighting.

{
 tui: {
   diff_syntax: false
 }
}
Originally created by @ibrahimsag on GitHub (Jan 11, 2026). Originally assigned to: @rekram1-node on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request # Request When viewing diffs in the TUI, syntax highlighting is always enabled. For some users/terminals, disabling syntax highlighting would improve readability. # Proposed solution: Add a tui.diff_syntax boolean config option (default: true). When set to false, diffs render without syntax highlighting. ``` { tui: { diff_syntax: false } } ```
yindo added the discussion label 2026-02-16 17:45:23 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 11, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #7023: [FEATURE]: Request for inline (word-level) diff highlighting in the edit view - addresses difficulty in reading diffs with highlighted syntax
  • #6630: Code Blocks Are Hard To Read When They Have Backgrounds - requests ability to disable highlighting/backgrounds for readability
  • #6823: CLI colors have low contrast on macOS Terminal (black / Pro theme) - related readability concerns with syntax highlighting visibility

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 11, 2026): This issue might be a duplicate of existing issues. Please check: - #7023: [FEATURE]: Request for inline (word-level) diff highlighting in the edit view - addresses difficulty in reading diffs with highlighted syntax - #6630: Code Blocks Are Hard To Read When They Have Backgrounds - requests ability to disable highlighting/backgrounds for readability - #6823: CLI colors have low contrast on macOS Terminal (black / Pro theme) - related readability concerns with syntax highlighting visibility Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4773