-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Highlight should use different colors when using multiple selections #44
Comments
The only annoying thing is that all colors have to come from the color scheme, so this could be difficult. |
The only difficult thing in life is to get jon to reply to messages/forums post, bugs, programming things can be solved. |
:P |
I've an inexplicable frustration.. |
Haha I find it easily explicable... I've the same one :) |
|
There's a list of the 11 "root groups" here: http://manual.macromates.com/en/language_grammars |
['comment', 'constant', 'entity', 'invalid', 'keyword', 'markup', 'meta', 'storage', 'string', 'support', 'variable'], but maybe we wouldn't want to use "invalid". Do people still use this plugin? |
Excluding I don't think I ever used this plugin, but the issues are quite active I guess. |
You could do highlighting similar to Colorcoder and hash the word underneath the cursor to determine its color. And, to retain the current functionality, only do it if there are multiple selections. |
ColorCoder modifies the color scheme file to add other colors. I guess we could do the same? |
I've never used this plugin, but I was looking through the groups issues today and saw this. I personally use a custom word highlighter that I picked up on the forums a long time ago and heavily modified it. I've never released it, but it supports multi selections. I keep it in my bin of plugins I don't care to publicly support https://github.com/facelessuser/SublimeRandomCrap/blob/master/highlight_word.py. I personally wanted to easily be able to specify multi-selections so at any time I could have as many or few as I wanted. So I made it dynamic in the settings: // Define scopes for highlights
// The more you define, the more selections you can do
"highlight_scopes": ["string", "keyword", "constant.language"], Anyways, maybe this will spark some ideas. I have no objections of anyone snagging code or ideas from it, but I was not the original author and I don't think there was ever a license associated with it...so whatever that means. Just figured I'd throw something at this as it's been open for years 😄. |
It would be very nice, to use different colours when using this package with multiples words. I'll try to take a look
The text was updated successfully, but these errors were encountered: