From eric@aplosmedia.com Tue Dec 18 07:00:18 2007 From: Eric Coleman To: textmate@lists.macromates.com Subject: [TxMt] Extending Built In Languages... Date: Tue, 18 Dec 2007 02:00:13 -0500 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5080633059052532240==" --===============5080633059052532240== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 tags, but I also want to have it use js()->start() ?> / js()->end() ?> (Same for css, except using "css()") How can I go about doing this? Regards, Eric --===============5080633059052532240==-- From textmate@subtleGradient.com Tue Dec 18 16:42:21 2007 From: Thomas Aylott - subtleGradient To: textmate@lists.macromates.com Subject: Re: [TxMt] Extending Built In Languages... Date: Tue, 18 Dec 2007 11:42:15 -0500 Message-ID: <9F636B2E-D4F3-44BA-9CBC-74F4A7985591@subtleGradient.com> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3505887531444826952==" --===============3505887531444826952== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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 tags, > but I also want to have it use > > js()->start() ?> / 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— --===============3505887531444826952==-- From eric@aplosmedia.com Tue Dec 18 21:13:07 2007 From: Eric Coleman To: textmate@lists.macromates.com Subject: Re: [TxMt] Extending Built In Languages... Date: Tue, 18 Dec 2007 16:13:00 -0500 Message-ID: In-Reply-To: <9F636B2E-D4F3-44BA-9CBC-74F4A7985591@subtleGradient.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8983493543178278100==" --===============8983493543178278100== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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 tags, >> but I also want to have it use >> >> js()->start() ?> / 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(a)lists.macromates.com > (threading gets destroyed and the universe will collapse if you don't) > http://lists.macromates.com/mailman/listinfo/textmate --===============8983493543178278100==-- From textmate@subtleGradient.com Tue Dec 18 23:12:37 2007 From: Thomas Aylott - subtleGradient To: textmate@lists.macromates.com Subject: Re: [TxMt] Extending Built In Languages... Date: Tue, 18 Dec 2007 18:12:29 -0500 Message-ID: <2CD3F707-E290-464B-90FE-A4FE7FFDAEC9@subtleGradient.com> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0410538619518371462==" --===============0410538619518371462== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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— --===============0410538619518371462==--