bblanchon / SublimeText-HighlightBuildErrors

👻 A plugin for Sublime Text 3 that highlights the lines that caused errors in the build
https://sublime.wbond.net/packages/Highlight%20Build%20Errors
MIT License
12 stars 7 forks source link

colour setting not working #5

Closed zimmertyzim closed 9 years ago

zimmertyzim commented 9 years ago

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?

bblanchon commented 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"
}
zimmertyzim commented 9 years ago

ah, that makes much more sense.

thanks. I'm new to all of this stuff. I'll give it a whirl.

vexe commented 8 years ago

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.

bblanchon commented 8 years ago

It's in HighlightBuildErrors.sublime-settings.

You can open this file from the menu: Preferences > Package Settings > Highlight Build Errors.

vexe commented 8 years ago

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.

bblanchon commented 8 years ago

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.