changing filetype/language association was: Re: [TxMt] best practice for changing markdown back as default for .txt?
Allan Odgaard
allan at macromates.com
Sat May 7 18:08:56 UTC 2005
On May 7, 2005, at 16:42, Tom Lazar wrote:
> while that worked as advertised I also tried to associate files ending
> in '.css.dtml' as CSS (it's a Zope thang, dynamically generated CSS
> files, cool stuff...) and entered
Currently it uses only the last extension of the filename. I can
probably change it to a prefix match. Don't know if just using “dtml”
would suffice for your purpose?
Btw: OakLanguageFileBindings is an array, so you'd need either to list
all your associations: '( { name = ...; }, { name = ...} )' or use the
“-array-add” option to defaults.
E.g.: defaults write com.macromates.textmate OakLanguageFileBindings
-array-add '{name = "CSS"; fileTypes = (dtml); language =
"4675F24E-6227-11D9-BFB1-000D93589AF6";}'
More information about the textmate
mailing list