Advertisement
Guest User

Sublime Text Editor

a guest
Mar 1st, 2010
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. import sublime, sublimeplugin, time
  2.  
  3. class HighlightWhitespace(sublimeplugin.ApplicationCommand):
  4.     def onUpdate(self, view):
  5.         region = view.findAll('^(\s+)')
  6.         view.addRegions("HighlightWhitespace", region, "whitespace")
  7.    
  8.     def run(self, args):
  9.         for window in sublime.windows():
  10.             for view in window.views():
  11.                 self.onUpdate(view)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement