2 Commits
1.0.0 ... 1.1.0

Author SHA1 Message Date
Kemal Hadimli
04b88f15bd update README to reflect ST3 support. 2013-05-03 14:57:42 +03:00
Kemal Hadimli
36f90560f4 ST3 support/bugfix (close #1) 2013-05-03 14:48:58 +03:00
2 changed files with 5 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
## Synopsis ## 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** **Highlight whitespaces in documents**
@@ -21,6 +21,8 @@ Then clone this repository:
That's it! 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 ## Options
Several options are available to customize the plugin look 'n feel. The Several options are available to customize the plugin look 'n feel. The

View File

@@ -56,11 +56,11 @@ def highlight_whitespaces(view):
if view.size() <= max_size and not is_find_results(view): if view.size() <= max_size and not is_find_results(view):
space_regions = find_whitespaces_spaces(view) space_regions = find_whitespaces_spaces(view)
view.add_regions('WhitespacesHighlightListener', view.add_regions('WhitespacesHighlightListener',
space_regions, space_scope_name, space_regions, space_scope_name, '',
sublime.DRAW_EMPTY) sublime.DRAW_EMPTY)
tab_regions = find_whitespaces_tabs(view) tab_regions = find_whitespaces_tabs(view)
view.add_regions('WhitespacesHighlightListener2', view.add_regions('WhitespacesHighlightListener2',
tab_regions, tab_scope_name, tab_regions, tab_scope_name, '',
sublime.DRAW_EMPTY) sublime.DRAW_EMPTY)