Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
04b88f15bd | ||
|
|
36f90560f4 |
@@ -1,6 +1,6 @@
|
||||
## Synopsis
|
||||
|
||||
This is a [Sublime Text 2](http://www.sublimetext.com/2) plugin.
|
||||
This is a plugin for [Sublime Text 2](http://www.sublimetext.com/2) and [3](http://www.sublimetext.com/3).
|
||||
|
||||
**Highlight whitespaces in documents**
|
||||
|
||||
@@ -21,6 +21,8 @@ Then clone this repository:
|
||||
|
||||
That's it!
|
||||
|
||||
Note for ST3 users: For Sublime Text 3, replace "2" with "3" in path names. (`%APPDATA%\Sublime Text 3` and so on)
|
||||
|
||||
## Options
|
||||
|
||||
Several options are available to customize the plugin look 'n feel. The
|
||||
|
||||
@@ -56,11 +56,11 @@ def highlight_whitespaces(view):
|
||||
if view.size() <= max_size and not is_find_results(view):
|
||||
space_regions = find_whitespaces_spaces(view)
|
||||
view.add_regions('WhitespacesHighlightListener',
|
||||
space_regions, space_scope_name,
|
||||
space_regions, space_scope_name, '',
|
||||
sublime.DRAW_EMPTY)
|
||||
tab_regions = find_whitespaces_tabs(view)
|
||||
view.add_regions('WhitespacesHighlightListener2',
|
||||
tab_regions, tab_scope_name,
|
||||
tab_regions, tab_scope_name, '',
|
||||
sublime.DRAW_EMPTY)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user