This would be a very useful feature when trying to make quick tweaks to a web hex color instead of having to jump into a browser’s dev tools or have to fire up Photoshop just to make minor color tweaks in CSS. 

I like the idea of the gutter getting the color where the line number is. If it highlighted the color itself that would be fine, but it would probably require more coding to make sure the foreground text was visible based on the luminance of the color behind it. You’d probably need to set the color to white or black of the text to make it all legible.

Either way, +1 to add this as a core feature of TM. I would use it constantly for CSS. Would be great if it also worked in HTML and PHP files when doing inline CSS. Not sure if it could be made to work in a PHP echo, but anything would be beneficial as opposed to not having the feature.

J

On Oct 21, 2021, at 2:27 PM, Graham Heath via TextMate <textmate@lists.macromates.com> wrote:

https://lists.macromates.com/hyperkitty/list/textmate@lists.macromates.com/thread/PNUTQABE7S5EPCUONY47LSVDLBDFPAMJ/

There’s this old thread about adding the color to the gutter. It seems like it was left _just barely_ unfinished.

-- 
Graham Heath

On October 21, 2021 at 1:02:09 PM, Per Persson via TextMate (textmate@lists.macromates.com) wrote:

AFAIK, you can’t. It would need some extra support in the core of TM.
Unless of course you added all of the 2^24 possible hex values to the theme.

/Per


21 okt. 2021 kl. 15:11 skrev Bartu0142omiej Jou0144czy via TextMate <textmate@lists.macromates.com>:

OK, but how? I can set the foreground/background color, but how to set it not for the constant value but for the value captured in the language grammar?

On 20 Oct 2021, at 21:15, Uğur Özyılmazel <ugurozyilmazel@gmail.com> wrote:

Yes it's possible. via theme...

Uğur Özyılmazel

https://ugur.ozyilmazel.com
https://github.com/vigo

On 20 Oct 2021 11:45 +0300, Bartłomiej Jończy via TextMate <textmate@lists.macromates.com>, wrote:
Hi everyone,
I've googled for that for days, but I can't find any solution. Is there any possibility to color hexadecimal values (e.g. #FF0000) with it's value? Like on the screenshot. I know how to colorize the pattern, but I can't set the color value in the theme.

<Screenshot 2021-10-20 at 10.44.04.png>
_______________________________________________
TextMate mailing list -- textmate@lists.macromates.com
To unsubscribe send an email to textmate-leave@lists.macromates.com

_______________________________________________
TextMate mailing list -- textmate@lists.macromates.com
To unsubscribe send an email to textmate-leave@lists.macromates.com
_______________________________________________
TextMate mailing list -- textmate@lists.macromates.com
To unsubscribe send an email to textmate-leave@lists.macromates.com
_______________________________________________
TextMate mailing list -- textmate@lists.macromates.com
To unsubscribe send an email to textmate-leave@lists.macromates.com