Sublime Forum

Permanent color code (ColorHighlighter)

#1

USE: Sublime Text Build 3126 x64 Portable
USE: https://github.com/Monnoroch/ColorHighlighter

Hi all,

I want to thank you for the development of Sublime Text + Color Highlighter and apologize for my bad English.
Can you advise me how to set up a permanent color for all CSS Colors?

Example:
https://s21.postimg.org/lyfe1h7sn/Example.png
THX

0 Likes

#2

What is a “permanent color”?

0 Likes

#3

Look at the picture! (that is exactly what I want to set) Color code will still be displayed in the background code.

0 Likes

#4

https://packagecontrol.io/packages/ColorHelper

1 Like

#5

I do not use “Color Helper” (Color Highlighter is better)…

I just want to know how to set up a permanent display of colors.

0 Likes

#6

You’re not going to get much help yelling at people; don’t be rude. What is obvious to you is not obvious to others.

With that said, what you are showing in the picture is done with temporary regions. This is not permanent, but requires a plugin to scan colors and constantly update the colors. Not only that, it requires it to update your color scheme and keep adding new color rules. If you are looking for it to be permanent (like part of the syntax highlight – which I am guessing that is what you are asking, but I’m not sure either what you mean by “permanent”), then you would also need to also edit your language file to scope each color with a different scope and edit your color scheme to apply the specific color to that scope that corresponds with the colors. If that is what you are asking, you probably aren’t going to find something that does that.

2 Likes

#7

If I undestand this question correct you want to always highlight all css colors and it currently just highlights the selected colors.

You could try to open the ColorHighlighter settings and set "ha_style" to "filled" (I haven’t tested it):

1 Like

I cannot get this editor to work for me at all
#8

Thank you that’s exactly what I wanted :heart_eyes: :heart_eyes:

PS:
facelessuser: https://en.wikipedia.org/wiki/Exclamation_mark
and often marks the end of a sentence. Example: “Watch out!”

0 Likes

#9

I am very aware of exclamation points. Context is also important. People were confused by the picture alone. And restating Look at the picture! seems like you are frustrated and/or irritated that we don’t see what you are trying to convey. It can be interpreted that you think we are dumb and can’t understand a simple picture. That may not be what you meant, but that was my initial reaction.

4 Likes

#10

Small remark: While I agree, that this is an obvious interpretation. I interpreted it as his frustration not to be able to appropriate explain the problem. Especially since he started the question with “apologize for my bad English”.

@tomas86799 next time I would suggest to add a “what I have” to your “what I want” screenshot.

5 Likes

#11

I think its even better than Color highlighter, thanks for your suggestion. But sadly its not showing colors to my sass variables but only to basic sass colors; help please?

0 Likes

#12

Sadly I don’t have a solution at this moment :frowning:

0 Likes

#13

In that case, can you please suggest a package which shows SASS variables color?

0 Likes

#14

I did not notice a new package that could achieve that. Still using ColorHelper now.

1 Like

#15

Ahh… I will then tell if I find a solution too :slight_smile:

1 Like