textmate - Text Mate 中的 Bundler Gemfile 语法高亮显示

标签 textmate ruby-on-rails bundler

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

最佳答案

在 Textmate 中,选择“bundle ”菜单 =>“bundle ”编辑器

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

在 Ruby on Rails bundle 中选择 Ruby on Rails 语言

更改此行:

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

对此:

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

转到 bundle => bundle 编辑器 => 重新加载 bundle 。

重新打开您的 Gemfile,您现在应该会看到语法突出显示。

关于textmate - Text Mate 中的 Bundler Gemfile 语法高亮显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3174451/

相关文章:

textmate - 让 TextMate2 突出显示变量的每次出现?

ruby-on-rails - Ruby\Rubygems 他们如何决定加载哪些 gem ?

ruby - 如何使用 dockerfile 安装 ruby​​ 和 bundler?

ruby-on-rails - 如何告诉 bundler 忽略不存在的 gem ?

editor - 显示方法输出的注释

macos - 如何在 Textmate 中显示方法/函数列表

bash - 运行 osascript -e 'tell app "TextMate 时出错“重新加载包”

ruby-on-rails - Rails 中的默认 getter 和 setter 是什么样子的?

ruby-on-rails - 如何从参数中删除字段[:something]

ruby-on-rails - 将 ruby​​gems 版本放入 Gemfile