I use the Haml tempate system in my Rails apps and I imported into TextMate a plugin for coloring Haml commands. That works me fine.
Now I have one more problem – all Haml files have the same icon, like the JS files (*.html.haml has the same icon, like *.js or *.js.haml).
Is there any option to have for *.html.haml the same icon as for *.html.erb?
I believe this is a
Finderissue. Select one of your.hamlfiles in the Finder, and then Get Info (File > Get Info) on it.(I’m on my iPhone now so can’t remember exactly what it says in the Get Info dialog but…) You’re looking for something like
Open with…orOpen using. Select that and choose TextMate. Then be sure to change the setting there to open all.hamlfiles withTextMate(or something to that effect).Should work? May need to relaunch TextMate?!?
UPDATED: looks like it’s a bit more complicated – you need to update some resource data in the TextMate bundle itself. See top answer to this question: https://superuser.com/questions/178316/how-to-set-an-icon-for-a-file-type-on-mac