-
Notifications
You must be signed in to change notification settings - Fork 14
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
Change color #17
Comments
@LeslieMeneses If you open the package using PackageResourceViewer(also a Sublime Package) you can open highlight_whitespace.py within it. If you change line 34, to "comment" from "invalid" it will change. You can also make it empty and turn the white spaces white. Unfortunately, I have no idea how to customize it beyond that.
|
Just figured out how to do this, it's a little convoluted... Using PackageResourceViewer find the theme file you are using. I am using one of the default themes, Monokai.tmTheme, found in "Color Scheme - Default". Open the file, scroll all the way to the bottom and insert the following piece of XML
Save the changes. Note: Found that snippet in the TrailingSpaces Package documentation, the package this one is forked from. With that set, open the User Settings file of HighlightWhitespaces and add the following lines to it
That should do it. You can even have different colors for spaces and tabs. Pretty cool. The only annoying part is that if you change color schemes you need to manually add the custom color to the new theme, which is a bit of a drag. |
I need to change the highlight color, but don´t understand how you should do. I try two ways.
{
"highlight_whitespaces_space_highlight_scope_name": "#dedede",
"highlight_whitespaces_tab_highlight_scope_name": "#dedede",
"highlight_whitespaces_eol_highlight_scope_name": "#dedede",
"highlight_whitespaces_mixed_highlight_scope_name": "#dedede"
}
{
"highlight_whitespaces_space_highlight_scope_name": "comment",
"highlight_whitespaces_tab_highlight_scope_name": "comment",
"highlight_whitespaces_eol_highlight_scope_name": "comment",
"highlight_whitespaces_mixed_highlight_scope_name": "comment"
}
please help me, thanks
The text was updated successfully, but these errors were encountered: