Closed zimmertyzim closed 9 years ago
It's kind of tricky.
Despite of the name "error_color", it's a key to a color in the selected theme.
This kind of key is called "scope" and you can see them in the .tmTheme
files.
For instance, you can use the scope used for SublimeLinter's error:
{
"error_color": "sublimelinter.mark.error"
}
ah, that makes much more sense.
thanks. I'm new to all of this stuff. I'll give it a whirl.
Could somebody elaborate more on this? Where exactly do I change/add this "error_color" value? - I see a "error_color" in "SublimeLinter.sublime-settings" and "HighlightBuildErrors.sublime-settings" but changing it doesn't do anything. I don't get anything when searching for "error" in my tmTheme files.
It's in HighlightBuildErrors.sublime-settings
.
You can open this file from the menu: Preferences
> Package Settings
> Highlight Build Errors
.
I did mention in my previous message that I already tried the error_color in HighlightBuildErrors.sublime-settings setting it to "ff0000" but to no avail - highlight stays white. (using ST3)
Edit however setting it to "sublimelinter.mark.error" does seem to work. but not arbitrary color values (ff0000). any idea why?
Edit setting the error_color in SublimeLinter.sublime-settings to arbitrary hex values (e.g. ff0000) seems to work.
Thanks.
Color code don't work here, as it's written above:
Despite of the name "error_color", it's a key to a color in the selected theme. This kind of key is called "scope" and you can see them in the .tmTheme files.
The example of sublimelinter.mark.error
only works if your theme defines it.
This is not the case of the default Monokai theme, but many other themes (like Gravity) have it because it's a very popular plugin.
I don't know if this is me being straight up dumb, but I can only get two colours to display. Either white, or the default pink.
Am I missing something here?