2010-07-04 40 views

回答

36

在TextMate中,选择捆绑菜单=>捆绑编辑

选择语言,而不是全部显示。

选择在Ruby中Rails的语言Ruby on Rails的捆绑

改变这一行:

fileTypes = ('rb', 'rxml', 'builder'); 

这样:

fileTypes = ('rb', 'rxml', 'builder', 'Gemfile'); 

转到捆绑=>捆绑Editior =>重新加载捆绑。

重新打开你的Gemfile,你现在应该得到语法高亮显示。

+0

感谢这个 “捆扎机”。 – 2011-07-14 01:54:55

0

https://github.com/drnic/Bundler.tmbundle.git安装textmate捆绑包。

步骤:
1. mkdir -p ~/Library/Application\ Support/TextMate/Bundles
2. cd ~/Library/Application\ Support/TextMate/Bundles
3. git clone https://github.com/drnic/Bundler.tmbundle.git
4. osascript -e 'tell app "TextMate" to reload bundles'
5.打开的Gemfile然后从菜单中选择下列