Syntax highlitghing is broken #2459

Open
opened 2026-02-16 17:35:44 -05:00 by yindo · 5 comments
Owner

Originally created by @tsukinoko-kun on GitHub (Nov 1, 2025).

Originally assigned to: @kommander on GitHub.

Description

Code shown in the TUI is not highlighted correctly.

OpenCode version

1.0.9

Steps to reproduce

Not sure where it breaks but thats the first code snippet I saw after I recently updated (I was at a version before the redesign). I assume its the + and - from the diff.

Screenshot and/or share link

Image

Operating System

macOS 26.0.1

Terminal

Ghostty

Originally created by @tsukinoko-kun on GitHub (Nov 1, 2025). Originally assigned to: @kommander on GitHub. ### Description Code shown in the TUI is not highlighted correctly. ### OpenCode version 1.0.9 ### Steps to reproduce Not sure where it breaks but thats the first code snippet I saw after I recently updated (I was at a version before the redesign). I assume its the `+` and `-` from the diff. ### Screenshot and/or share link <img width="2048" height="1152" alt="Image" src="https://github.com/user-attachments/assets/f44071a5-a631-4ce0-a8c2-067fd4daf31b" /> ### Operating System macOS 26.0.1 ### Terminal Ghostty
yindo added the opentuibug labels 2026-02-16 17:35:44 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 1, 2025):

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

  • #3687: Very similar issue about missing diff highlighting in v1.0.7+ - both report problems with red/green diff highlights not working properly
  • #3646: Related issue about code snippets not using the correct theme/highlighting in v1.0.2+

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

@github-actions[bot] commented on GitHub (Nov 1, 2025): This issue might be a duplicate of existing issues. Please check: - #3687: Very similar issue about missing diff highlighting in v1.0.7+ - both report problems with red/green diff highlights not working properly - #3646: Related issue about code snippets not using the correct theme/highlighting in v1.0.2+ Feel free to ignore if none of these address your specific case.
Author
Owner

@kommander commented on GitHub (Nov 1, 2025):

Ah yes, are there tabs in the code? There currently is an issue with tabs. Will be fixed.

@kommander commented on GitHub (Nov 1, 2025): Ah yes, are there tabs in the code? There currently is an issue with tabs. Will be fixed.
Author
Owner

@tsukinoko-kun commented on GitHub (Nov 2, 2025):

Ah yes, are there tabs in the code? There currently is an issue with tabs. Will be fixed.

Yes. I use tabs for indentation.
I assume rendering the tab character wider than one character messes up the token positions?

@tsukinoko-kun commented on GitHub (Nov 2, 2025): > Ah yes, are there tabs in the code? There currently is an issue with tabs. Will be fixed. Yes. I use tabs for indentation. I assume rendering the tab character wider than one character messes up the token positions?
Author
Owner

@kellpossible commented on GitHub (Nov 3, 2025):

renders this unusable for go code

@kellpossible commented on GitHub (Nov 3, 2025): renders this unusable for go code
Author
Owner

@thdxr commented on GitHub (Nov 3, 2025):

we're working on this

@thdxr commented on GitHub (Nov 3, 2025): we're working on this
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2459