Hi,
I use the ZenCoding Bundle for HTML/CSS, but frequently I need to use HTML snippets in PHP files too. Yes, I can change the scope from just 'text/html' to 'text..html, source.php' but editing hundreds of snippets would take time.
Is there a shortcut method to achieve this?
Thanks in advance for your help.
From: Ibrahim Ezzy iaezzy@gmail.com I can change the scope from just 'text/html' to 'text..html, source.php' but editing hundreds of snippets would take time.
Is there a shortcut method to achieve this?
Not that I know of, but you can try this:
Open the ZenCoding.tmbundle as a TextMate project (probably easiest to use Terminal to "mate path/to/bundle/"), or even just your Snippets subfolder of the tmbundle, and do a Find in Project for something like...
<key>scope</key> <string>some.scope</string>
And replace it with your desired scope.
I have not tried this, but it may be what you're after. You'll probably need to reload your bundles, or even restart TextMate, after you do this.
I'd also make a backup of your bundle before proceeding...now that I'm thinking about it...it would be easy to really screw things up!
Food for thought...hope it helps, and hope it works!'
Dru
On 10 Sep 2009, at 07:58, Ibrahim Ezzy wrote:
I use the ZenCoding Bundle for HTML/CSS, but frequently I need to use HTML snippets in PHP files too. Yes, I can change the scope from just 'text/html' to 'text..html, source.php' but editing hundreds of snippets would take time.
HTML snippets should work fine in PHP as PHP is always embedded in HTML and scope selectors work just like CSS selectors in that respect.