Skip to content
Hooopo edited this page Aug 7, 2013 · 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
au BufRead,BufNewFile *.rabl hi def link rubyRabl Function

Sublime Text 2

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