Install Ruby Slim in Sublime
1a. Windows or Linux: press ctrl+shift+p
1b. Mac: press cmd+shift+p
2. Type "Package Control: Install Package" and press enter/return.
3. Wait for the new dropdown and then type "Ruby Slim" and press enter/return.
4. At the very bottom right of the Sublime text editor, click on the language and select "Ruby Slim".
If there is no "Package Control: Install Package" found, then follow the below steps:
1. Access the console via "ctrl+`" OR View > Show Console menu
2. Paste the appropriate Python code for your version of Sublime Text into the console.
1b. Mac: press cmd+shift+p
2. Type "Package Control: Install Package" and press enter/return.
3. Wait for the new dropdown and then type "Ruby Slim" and press enter/return.
4. At the very bottom right of the Sublime text editor, click on the language and select "Ruby Slim".
If there is no "Package Control: Install Package" found, then follow the below steps:
1. Access the console via "ctrl+`" OR View > Show Console menu
2. Paste the appropriate Python code for your version of Sublime Text into the console.
Sublime Text 3
import urllib.request,os,hashlib; h = 'eb2297e1a458f27d836c04bb0cbaf282' + 'd0e7a3098092775ccb37ca9d6b2e4b7d'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)
Sublime Text 2
import urllib2,os,hashlib; h = 'eb2297e1a458f27d836c04bb0cbaf282' + 'd0e7a3098092775ccb37ca9d6b2e4b7d'; 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()) ); by = urllib2.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation')
Comments
Post a Comment