Adding file types to packages


#1

So I’m trying to add .json_builder to the Ruby on Rails filetypes. I see that it has the Grammars under the Language Ruby on Rails package, but I’m unable to add new ones.

Anyone know how?


#2

Do you mean you want to add “json_builder” to the list of File Types for the “source.ruby.rails” Scope?

I hacked together a way to do that from within the init.coffee (2650#4); but, I’m not sure if that’s exactly what you want to do.


#3

Seems that someone has recently made a package that will allow me to do this. I haven’t tried yet since I’m not on my Mac, but I will once I get on it.

File Types


#4

Yeah, I made that :wink: Does it work for what you are trying to do?