Reputation: 3615
Im using a single css file for my Ruby on Rails project. For enabling the asset_path possibility I renamed it to style.css.erb.
Is there a way to make display of the code hinting the right way in Sublime Text 2?
Upvotes: 0
Views: 166
Reputation: 21
You could use https://github.com/facelessuser/ApplySyntax plugin that lets you write custom rules to detect and apply syntax to files.
Add this to the syntaxes
key in the user settings for the plugin
"syntaxes": [
{ "name": "CSS",
"rules": [
{"file_name": ".*\\.css.erb$"}
]
}
]
Upvotes: 1