Skip to content

Instantly share code, notes, and snippets.

Badger jtmille3

  • SAS
  • Cary, North Carolina
Block or report user

Report or block jtmille3

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jtmille3 /
Created Aug 19, 2012
Enhanced XML Formatting for Sublime Text 2
import sublime, sublime_plugin, subprocess
class TidyXmlCommand(sublime_plugin.TextCommand):
def run(self, edit):
if self.view.sel()[0].size() > 0:
self.cursor = None
for region in self.view.sel():
self.format(edit, region)
self.cursor = self.view.sel()[0]
You can’t perform that action at this time.