大家好,我正在学习Rails3,所以我开始使用gem Bundler (http://github.com/carlhuda/bundler)。有人知道如何设置TextMate来突出显示Gemfile语法吗?谢谢!
发布于 2010-07-04 19:48:52
在Textmate中,选择束菜单=>束编辑器
选择languages而不是show all。
在Ruby on Rails捆绑包中选择Ruby on rails语言
更改此行:
fileTypes = ( 'rb', 'rxml', 'builder' );
要这样做:
fileTypes = ( 'rb', 'rxml', 'builder', 'Gemfile' );
转到捆绑包、=>捆绑包编辑者或=>重新加载捆绑包。
重新打开Gemfile,现在应该会看到语法突出显示。
发布于 2011-12-25 14:38:59
从https://github.com/drnic/Bundler.tmbundle.git安装textmate包。
步骤:
mkdir -p ~/Library/Application\ Support/TextMate/Bundles
cd ~/Library/Application\ Support/TextMate/Bundles
git clone https://github.com/drnic/Bundler.tmbundle.git
osascript -e 'tell app "TextMate" to reload bundles'
下面的菜单中选择"Bundler“
https://stackoverflow.com/questions/3174451
复制相似问题