To make Vim treat .rabl files as .rb files, add this in your vim configuration file:
.rabl
.rb
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:
~/.vim/after/plugin/rabl.vim
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.
There was an error while loading. Please reload this page.