step1.
先到sublimall來申請帳號密碼
http://sublimall.org/
step2.
安裝
Sublime Text 3 主程式
主控台視窗,或直接按下 Ctrl + ` 組合鍵
view => show console
- 請注意:這段安裝程式碼,僅適用於 Sublime Text 3 版本!
import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404e330c659d4bb41d3bdf022e94cab3cd0'; 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://sublime.wbond.net/' + 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)
安裝好之後的畫面如下,你可以再按一次 Ctrl + ` 組合鍵以關閉主控台視窗
step3.
[Preferences] –> [Package Control] 啟用這個 Sublime Text 套件管理員
Ctrl+Shift+P 然後輸入 inst 之後按下 Enter 鍵
Install Package
Ctrl-Shift-P Install Package and type Sublimall to install it.
將sublimall安裝進去
step4.設定您sublimall的email and api key
You just have to click on Preferences, Package Settings, Sublimall and Settings - User.
{
////////////////////////////
//// Sublimall settings ////
////////////////////////////
"api_root_url": "http://sublimall.org",
"api_upload_url": "/api/upload/",
"api_retrieve_url": "/api/retrieve/",
///////////////////////
//// User settings ////
///////////////////////
"email": "請輸入您的emil",
"api_key": "請輸入key",
// Paths must be: "Packages/SublimeCodeIntel" or "Installed Packages/Sublimall"
"ignore_packages": [],
// Set true if you want to exclude packages managed by Package Control
"exclude_from_package_control": false,
// Set false if you don't want to encrypt your configuration
"encrypt": true,
// Upload timeout in seconds
"http_upload_timeout": 120,
// Download timeout in seconds
"http_download_timeout": 120,
// Path to 7zip executable, though Sublimall tries to find it out itself
"7za_path": "",
// HTTP proxy to use for HTTP requests. Support for authentication
// Examples: http://user:password@host:port or http://ip:port
"http_proxy": ""
}