Bundler Gemfile语法在Text Mate中突出显示

A B*_*A B 18 textmate ruby-on-rails bundler

您好我正在学习Rails3所以我开始使用gem Bundler(http://github.com/carlhuda/bundler)有谁知道,如何设置TextMate以突出显示Gemfile语法?谢谢!

all*_*lar 36

在Textmate中,选择Bundles菜单=> Bundles编辑器

选择语言而不是全部显示.

在Ruby on rails包中选择Ruby on Rails语言

改变这一行:

fileTypes = ( 'rb', 'rxml', 'builder' );
Run Code Online (Sandbox Code Playgroud)

对此:

fileTypes = ( 'rb', 'rxml', 'builder', 'Gemfile' );
Run Code Online (Sandbox Code Playgroud)

转到Bundles => Bundles Editior =>重新加载捆绑包.

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