From 19ec7deda2e0919381853d20dff664979172413c Mon Sep 17 00:00:00 2001 From: hannelita Date: Mon, 9 Jun 2014 11:49:43 -0300 Subject: [PATCH] Adding sinnpet for Sublime Text 3 --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 24f0b9a..7032664 100644 --- a/README.md +++ b/README.md @@ -15,10 +15,14 @@ If you have Sublime Package Control, you know what to do. If not, well: it's a package manager for Sublime Text 2; it's awesome and you can [read about it here](http://wbond.net/sublime_packages/package_control). -To install Package Control, open the Python Console (`ctrl+'` or ``cmd+` ``) and paste the following into it: +To install Package Control, open the Python Console (`ctrl+'` or ``cmd+` ``) and paste the following into it if you have **Sublime Text 2**: import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print 'Please restart Sublime Text to finish installation' +If you have **Sublime Text 3**, paste the following: + + import urllib.request, urllib.error, urllib.parse,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib.request.install_opener(urllib.request.build_opener(urllib.request.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib.request.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print('Please restart Sublime Text to finish installation') + After installing the package and restarting the editor: * Open the Command Pallete (`ctrl+shift+P` or `cmd+shift+P`).