feat: highlight hex codes with the color #1710

Closed
opened 2026-02-16 17:32:16 -05:00 by yindo · 13 comments
Owner

Originally created by @calebdw on GitHub (Sep 13, 2025).

Hello!

It would be awesome if colors were highlighted so it's very easy to tell what they are:

Image

Here's an example from neovim:

Image

Thanks!

Originally created by @calebdw on GitHub (Sep 13, 2025). Hello! It would be awesome if colors were highlighted so it's very easy to tell what they are: <img width="544" height="149" alt="Image" src="https://github.com/user-attachments/assets/25471606-09f0-491c-b785-4f8d662fc6fc" /> Here's an example from neovim: <img width="671" height="143" alt="Image" src="https://github.com/user-attachments/assets/d108683e-3e30-4ef4-b5ff-f1a743d75fbf" /> Thanks!
yindo added the help-wantedgood first issue labels 2026-02-16 17:32:16 -05:00
yindo closed this issue 2026-02-16 17:32:16 -05:00
Author
Owner

@rekram1-node commented on GitHub (Dec 27, 2025):

[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

@rekram1-node commented on GitHub (Dec 27, 2025): [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
Author
Owner

@calebdw commented on GitHub (Dec 27, 2025):

I still think this would be good to have @rekram1-node

@calebdw commented on GitHub (Dec 27, 2025): I still think this would be good to have @rekram1-node
Author
Owner

@rekram1-node commented on GitHub (Dec 27, 2025):

sounds good, I think this is lower on our list but if someone wants to pr it

@rekram1-node commented on GitHub (Dec 27, 2025): sounds good, I think this is lower on our list but if someone wants to pr it
Author
Owner

@calebdw commented on GitHub (Dec 27, 2025):

Here's the library that I use on nvim for reference: https://github.com/catgoose/nvim-colorizer.lua

@calebdw commented on GitHub (Dec 27, 2025): Here's the library that I use on nvim for reference: https://github.com/catgoose/nvim-colorizer.lua
Author
Owner

@mdkulkarni2005 commented on GitHub (Dec 28, 2025):

is that still open or not

@mdkulkarni2005 commented on GitHub (Dec 28, 2025): is that still open or not
Author
Owner

@LionChenA commented on GitHub (Dec 28, 2025):

I'd like to work on this issue. @rekram1-node

@LionChenA commented on GitHub (Dec 28, 2025): I'd like to work on this issue. @rekram1-node
Author
Owner

@jettptacek commented on GitHub (Jan 16, 2026):

https://github.com/jettptacek/opencode
I'm working on this right now and I do not like my implementation. I'm injecting color highlights into tree-sitter output. Let me know if anyone has any ideas of a cleaner implementation. Also code blocks text color are not changing right now

Image
@jettptacek commented on GitHub (Jan 16, 2026): https://github.com/jettptacek/opencode I'm working on this right now and I do not like my implementation. I'm injecting color highlights into tree-sitter output. Let me know if anyone has any ideas of a cleaner implementation. Also code blocks text color are not changing right now <img width="738" height="937" alt="Image" src="https://github.com/user-attachments/assets/d51f9de9-1a24-44ac-9910-a2bb9e4aa379" />
Author
Owner

@jettptacek commented on GitHub (Jan 16, 2026):

Image

I will try to clean up my implementation and see if I can get a pull request opened this weekend

@jettptacek commented on GitHub (Jan 16, 2026): <img width="977" height="804" alt="Image" src="https://github.com/user-attachments/assets/9ce6bc34-0ec4-4e0c-81b2-45dd80b74ffa" /> I will try to clean up my implementation and see if I can get a pull request opened this weekend
Author
Owner

@lsm1103 commented on GitHub (Jan 21, 2026):

Hasn't this problem been solved?

@lsm1103 commented on GitHub (Jan 21, 2026): Hasn't this problem been solved?
Author
Owner

@calebdw commented on GitHub (Jan 21, 2026):

Has it?

@calebdw commented on GitHub (Jan 21, 2026): Has it?
Author
Owner

@mohamedbouddi7777-dev commented on GitHub (Jan 21, 2026):

في الأربعاء، ٢١ يناير ٢٠٢٦، ٠٦:٢٠ Caleb White @.***>
كتب:

calebdw left a comment (anomalyco/opencode#2586)
https://github.com/anomalyco/opencode/issues/2586#issuecomment-3776206598

Has it?


Reply to this email directly, view it on GitHub
https://github.com/anomalyco/opencode/issues/2586#issuecomment-3776206598,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/B2DFN3RGGNMYKRKZFRNJ4ZD4H4EDHAVCNFSM6AAAAACGOEVDY6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTONZWGIYDMNJZHA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

@mohamedbouddi7777-dev commented on GitHub (Jan 21, 2026): في الأربعاء، ٢١ يناير ٢٠٢٦، ٠٦:٢٠ Caleb White ***@***.***> كتب: > *calebdw* left a comment (anomalyco/opencode#2586) > <https://github.com/anomalyco/opencode/issues/2586#issuecomment-3776206598> > > Has it? > > — > Reply to this email directly, view it on GitHub > <https://github.com/anomalyco/opencode/issues/2586#issuecomment-3776206598>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/B2DFN3RGGNMYKRKZFRNJ4ZD4H4EDHAVCNFSM6AAAAACGOEVDY6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTONZWGIYDMNJZHA> > . > You are receiving this because you are subscribed to this thread.Message > ID: ***@***.***> >
Author
Owner

@jettptacek commented on GitHub (Jan 21, 2026):

I have an open pr for this feature; however, it is "hacky". I just opened a pr for opentui https://github.com/anomalyco/opentui/pull/568 so then opencode can eventually use my opentui change to allow custom inline highlighting

@jettptacek commented on GitHub (Jan 21, 2026): I have an open pr for this feature; however, it is "hacky". I just opened a pr for opentui https://github.com/anomalyco/opentui/pull/568 so then opencode can eventually use my opentui change to allow custom inline highlighting
Author
Owner

@jettptacek commented on GitHub (Jan 24, 2026):

This issue should not have been marked closed because of https://github.com/anomalyco/opentui/pull/568 Apologies if my mention of this issue in that pr caused it to automatically close

@jettptacek commented on GitHub (Jan 24, 2026): This issue should not have been marked closed because of https://github.com/anomalyco/opentui/pull/568 Apologies if my mention of this issue in that pr caused it to automatically close
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1710