Haml syntax highlight in Sublime Text 2 for .hamlc templates

I installed the HAML textmate bundle, that display syntax highlight for .haml templates, but I also have Coffee HAML templates that are named like


and I would like to add syntax highlight as well.

The Ruby Haml syntax is good enough, so I usually just change the language to Ruby Haml, but then when I close and open the file again, Sublime Text 2 forgets it and I have to assign it again and again.

Is there a way to automatically assign the ruby Haml syntax highlight for .hamlc files?


In the language selection menu (click on "Plain Text" in the bottom right), at the very top is "Open all with current extension as", which expands to another list of languages. Pick User > Rails > Ruby Haml from there and it will remember that for hamlc files.

I just added a hamlc syntax definition to package control for Sublime.

Need Your Help

parse a section of an XML file with python

python xml

Im new to both python and xml. Have looked at the previous posts on the topic, and I cant figure out how to do exactly what I need to. Although it seems to be simple enough in principle.

convert xml into dataset

c# xml dataset

When I tried to convert a xml isolated storage file in dataset I get an exception like "cannot access,because being used by another user"