At sublimetext.userecho.com/feedback/21171-search/ I found a tip how to highlight trailing spaces.
Problem is that I can’t figure out how to customize color (posted question there but not sure if commenter was notified and if I will ever get reply there).
Script source is here: bitbucket.org/theblacklion/subl … _spaces.py
It does:
view.add_regions('HighlightTrailingSpacesListener', regions, color_name,
sublime.DRAW_EMPTY_AS_OVERWRITE)
so I’ve added custom scope to theme I’m using (Twilight) like this:
<dict>
<key>name</key>
<string>Trailing whitespace</string>
<key>scope</key>
<string>trailingspace</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#FF0E09</string>
<key>foreground</key>
<string>#F8F8F8</string>
</dict>
</dict>
and set DEFAULT_COLOR_NAME = ‘trailingspace’ in script. Unfortunately, trailing spaces have white background with this change. When using default “comment” scope, they have no background color (or same as buffer background) so changing color seems to make some difference but not the one I expect.