Gnintendo wrote:I was envisioning just picking the outermost scope for the coloring. Regarding the braces, I like the white coloring that matches. The matching colors are the least distracting while still being useful with a flare of style. Is there an easier way to do this than manually go and set the color to match for every single "bracket" type?
facelessuser wrote:Gnintendo wrote:I was envisioning just picking the outermost scope for the coloring. Regarding the braces, I like the white coloring that matches. The matching colors are the least distracting while still being useful with a flare of style. Is there an easier way to do this than manually go and set the color to match for every single "bracket" type?
Some people want one color that all brackets use, some people want the bracket to be the same as the bracket being emphasized, some want contrast between the two to make it easier to see. I run into a problem were I can't please everyone with styling, so the easiest way is to make it completely configurable. If I make it simpler for you to style it in your way, it may make it less simpler for people to style in their way. So I make it basic, but straight forward. Create style profiles and assign them to one or more brackets.
You don't have to create separate style profiles for every bracket. You can create just a couple and assign them to multiple brackets. You can remove them all and just use the default one.
On top of that, changing the colors isn't something you are going to be doing everyday. It is one of those things were you tweak it the first time, and then you forget about it. If it was a task that was going to be done everyday, I can see where it would get troublesome, but really, this is something you should tweak how you like and forget about it.
"default": {
"color": "brackethighlighter.bracketcolor",
}Gnintendo wrote:facelessuser wrote:Gnintendo wrote:I was envisioning just picking the outermost scope for the coloring. Regarding the braces, I like the white coloring that matches. The matching colors are the least distracting while still being useful with a flare of style. Is there an easier way to do this than manually go and set the color to match for every single "bracket" type?
Some people want one color that all brackets use, some people want the bracket to be the same as the bracket being emphasized, some want contrast between the two to make it easier to see. I run into a problem were I can't please everyone with styling, so the easiest way is to make it completely configurable. If I make it simpler for you to style it in your way, it may make it less simpler for people to style in their way. So I make it basic, but straight forward. Create style profiles and assign them to one or more brackets.
You don't have to create separate style profiles for every bracket. You can create just a couple and assign them to multiple brackets. You can remove them all and just use the default one.
On top of that, changing the colors isn't something you are going to be doing everyday. It is one of those things were you tweak it the first time, and then you forget about it. If it was a task that was going to be done everyday, I can see where it would get troublesome, but really, this is something you should tweak how you like and forget about it.
I know, I was just asking if there was an easier way to do this (eg. somehow set it as the default behavior for everything). Nothing can ever please everybody; I just thought this would be a nice option to have and a better default than simply using the foreground color. I'm not suggesting you should abandon customization, that's silly. I'm just saying that something like:would be a nice option to have.
- Code: Select all
"default": {
"color": "brackethighlighter.bracketcolor",
}
{
"bracket_styles": {
"unmatched": {
"color": "brackethighlighter.unmatched",
"style": "underline"
},
"curly": {
"color": "brackethighlighter.curly"
},
"round": {
"color": "brackethighlighter.round"
},
"square": {
"color": "brackethighlighter.square"
},
"angle": {
"color": "brackethighlighter.angle"
},
"tag": {
"color": "brackethighlighter.tag",
"style": "underline"
},
"single_quote": {
"color": "brackethighlighter.quote"
},
"double_quote": {
"icon": "double_quote",
"color": "brackethighlighter.quote"
},
"regex": {
"color": "brackethighlighter.quote"
}
}
}Gnintendo wrote:Can you define the defaults when something isn't specified in the User settings file?
// "default" and "unmatched" styles are special
// styles. If they are not defined here,
// they will be generated internally with
// internal defaults.
// "default" style defines attributes that
// will be used for any style that does not
// explicitly define that attribute. So if
// a style does not define a color, it will
// use the color from the "default" style.
"default": {
"icon": "dot",
"color": "brackethighlighter.default",
"style": "underline"
},
Gnintendo wrote:All the icons are the circle except the double_quote when I manually copied in. Shouldn't this be falling back on the default values for that particular setting when I don't specify what I want?
Gnintendo wrote:On a side note, I guess there's no easy way to simply grab the coloring of the outermost character highlighted/underlined/outlined/etc to use. Oh well.
"scope_brackets": []iamntz wrote:Few stuff:
- it is possible to extend a theme? I mean ok, i changed Monokai, but what if there is a new version of Monokai in the future? (is totally unrelated to BH, it's more related to ST itself).
iamntz wrote:- i noticed that if i would remove everything and let this empty in my user bb_core settings file:
- Code: Select all
"scope_brackets": []
Highlights stops for quotes. If i remove completely, it's fine (which is what i did). I'm not customizing anything in this area (not now, probably not ever), but probably it's a good idea to have an option to merge settings with default or just replace completely. That's because it's kinda silly to copy/paste ALL default settings just to add one more setting. Again, i'm not using this, but probably someone that use it should provide some feedback.
iamntz wrote:- i read in another thread about alpha colors. Which i tried and works awesome. There are some situations when text cursor it's slightly hard to see (when you use style:solid). I was thinking of adding an option to „dim the solid color” when you are touching a bracket with the cursor ( like so {|} ). In this case, if the color is #CC0000, when touching would be #CC000066 or something like that. Make sense?
iamntz wrote:- another thing that may be useful (ask other users too!) is to not highlight brackets that are touching ( e.g. in: function(){ }, () part should not be highlighted, but {} should be)
Return to Plugin Announcements
Users browsing this forum: krskrs and 3 guests