2010-07-04 44 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然後從菜單中選擇下列