Created
February 8, 2014 06:54
-
-
Save budougumi0617/8877736 to your computer and use it in GitHub Desktop.
MacでSublime Textを導入してみた[HTML5+JavaScript+Node.js+Markdown] ref: http://qiita.com/budougumi0617/items/58fe634e00739b32d08a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"snippets": { | |
"variables": { | |
"lang": "ja", | |
"locale": "ja-JP", | |
"charset": "UTF-8", | |
"indentation": "\t", | |
"newline": "\n" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); 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()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
</head> | |
<body> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Airlocal:git budougumi0617$ node -v | |
v0.10.25 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Airlocal:git budougumi0617$ ls /usr/local/bin/node | |
/usr/local/bin/node | |
Airlocal:git budougumi0617$ ls /usr/local/bin/npm | |
/usr/local/bin/npm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log("Run JavaScript in Sublime Text!"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"cmd": ["node","$file","file_base_name"], | |
"working_dir":"${project_path:${folder}}", | |
"selector":"*.js" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
//フォントサイズ | |
"font_size": 13, | |
//フォントタイプ | |
"font-face": "Ricty", | |
//行間 | |
"line_padding_top": 5, | |
//タブサイズ | |
"tab_size": 4, | |
//空白の削除 | |
"trim_trailing_white_space_on_save": true, | |
//タブやスペースなどの不過視文字を表示(お好みで) | |
"draw_white_space": "all", | |
//現在の選択行をハイライト表示(お好みで) | |
"highlight_line":true, | |
//自動改行 | |
"word_wrap": true | |
//[Emmet]Tabキー展開の停止 | |
"disable_tab_abbreviations": true | |
//[Emmet]日本語変換確定の文字消えを防ぐ | |
"disable_formatted_linebreak": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment