On 10. Mar 2007, at 07:59, Niels Kobschätzki wrote:
On Mar 10, 2007, at 7:57 AM, Allan Odgaard wrote:
On 10. Mar 2007, at 06:43, Michael Jackson wrote:
Ah yes. Some of the files that I work on actually do have the same extension, but I'd like them to be highlighted in different languages. For example, sometimes I generate CSS files with php. The file will be named something like: style.css.php. What I would like to do is tell TextMate that, even though this file has a php extension, it's really CSS,
If you go to the bundle editor and locate the CSS language grammar, you can put ‘css.php’ in the file types array, that should make it treat files with this double extension as CSS.
but won't this be deleted with an svn-update of the css-bundle?
If you have the checkout in /Library, doing the edit will produce the file ~/Library/Applicationn Support/TextMate/Bundles/CSS.tmbundle/ Syntaxes/CSS.tmDelta which contains just the new fileTypes array.
If you have the checkout in ~/Library, the file will be locally modified, and svn will gracefully merge updated versions of the CSS grammar with the local changes (until the default grammar has the fileTypes array changed, in which case there will be a merge conflict which require manual sorting, but unlikely the fileType array is going to change anytime soon).
If you do not have a checkout, the first scenario applies.