Hi Everyone,
What I want to do, is extend the css & js definitions to have alternate start / end tags...
For javascript, I want to match the normal <script></script> tags, but I also want to have it use
<?php $this->js()->start() ?> / <?php $this->js()->end() ?>
(Same for css, except using "css()")
How can I go about doing this?
Regards, Eric
On Dec 18, 2007, at 2:00 AM, Eric Coleman wrote:
Hi Everyone,
What I want to do, is extend the css & js definitions to have alternate start / end tags...
For javascript, I want to match the normal <script></script> tags, but I also want to have it use
<?php $this->js()->start() ?> / <?php $this->js()->end() ?>
(Same for css, except using "css()")
How can I go about doing this?
Regards, Eric
This functionality is actually in the HTML language syntax itself. Make a copy of the HTML language and move it to your personal bundle (make one if you don't already have one).
Read up on the documentation for how to make your own rule that will include another language from within the another. For an example, look for a line that contains "include" and "source.js".
—Thomas Aylott – subtleGradient—
Thomas,
I found the relevant parts, thank you. The problem now, is that I hardly understand regex enough to implement this on my own. If anyone is willing to give me a hand, i'll gladly through you some cash or grab you something off your amazon wishlist.
Regards, Eric
On Dec 18, 2007, at 11:42 AM, Thomas Aylott - subtleGradient wrote:
On Dec 18, 2007, at 2:00 AM, Eric Coleman wrote:
Hi Everyone,
What I want to do, is extend the css & js definitions to have alternate start / end tags...
For javascript, I want to match the normal <script></script> tags, but I also want to have it use
<?php $this->js()->start() ?> / <?php $this->js()->end() ?>
(Same for css, except using "css()")
How can I go about doing this?
Regards, Eric
This functionality is actually in the HTML language syntax itself. Make a copy of the HTML language and move it to your personal bundle (make one if you don't already have one).
Read up on the documentation for how to make your own rule that will include another language from within the another. For an example, look for a line that contains "include" and "source.js".
—Thomas Aylott – subtleGradient—
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On Dec 18, 2007, at 4:13 PM, Eric Coleman wrote:
Thomas,
I found the relevant parts, thank you. The problem now, is that I hardly understand regex enough to implement this on my own. If anyone is willing to give me a hand, i'll gladly through you some cash or grab you something off your amazon wishlist.
Regards, Eric
http://www.regular-expressions.info/
1 pony please.
—Thomas Aylott – subtleGradient—