Skip to content
Matthew Callis edited this page Mar 13, 2014 · 7 revisions

Vim

To make Vim treat .rabl files as .rb files, add this in your vim configuration file:

au BufRead,BufNewFile *.rabl setf ruby

Additionally, if you want Vim to highlight RABL DSL methods, create a ~/.vim/after/plugin/rabl.vim file with this content:

au BufRead,BufNewFile *.rabl syn keyword rubyRabl node attribute object child collection attributes glue extends cache
au BufRead,BufNewFile *.rabl hi def link rubyRabl Function

If you're using a plugin manager such as Pathogen, you can use the (tiny) vim-rabl plugin.

To make Sublime Text 2 treat .rabl files as .rb files, use rabl syntax highlighter

To make Atom treat .rabl files as .rb files, install the language-rabl package from the Settings view.