« Sublime text » : différence entre les versions
| Ligne 49 : | Ligne 49 : | ||
---- | ---- | ||
view -> show console | view -> show console<br> | ||
paste | paste | ||
<pre> | |||
import urllib2,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; 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://sublime.wbond.net/' + 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') | import urllib2,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; 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://sublime.wbond.net/' + 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') | ||
restart Sublime Text. | restart Sublime Text. | ||
</pre> | |||
Press Command-Shift-P | Press Command-Shift-P | ||
source:http://www.granneman.com/webdev/editors/sublime-text/packages/how-to-install-and-use-package-control/ | source:http://www.granneman.com/webdev/editors/sublime-text/packages/how-to-install-and-use-package-control/ | ||
<pre> | |||
package: | package: | ||
ApacheConf.tmLanguage | ApacheConf.tmLanguage | ||
| Ligne 65 : | Ligne 66 : | ||
SublimeOnSaveBuild | SublimeOnSaveBuild | ||
SublimeLinter | SublimeLinter | ||
</pre> | |||
== Autres == | == Autres == | ||