- Install ApplySyntax package from package manager
- Add the following to the user settings for the package:
{
// Deface ERB
"name": "Rails/HTML (Rails)",
"extensions": ["deface"],
"rules": [
{"file_name": ".*\\.html\\.erb\\.deface"}
]
},
{
// Deface
"name": "Rails/Ruby on Rails",
"extensions": ["deface"],
"rules": [
{"file_name": ".*\\.deface"}
]
},
Thanks for this! It wasn't immediately clear to me where in the user settings to put the above code. Putting it at the top or bottom of the file generated Sublime errors. But everything worked great when i put it in the
"syntaxes"
array.