[TxMt] [ANN] Select Balanced HTML Tag!!!1!
gerti-textmate at bitart.com
Tue Nov 20 19:34:17 UTC 2007
On Nov 20, 2007, at 12:06 PM, Hans-Jörg Bibiko wrote:
> On 16.11.2007, at 18:51, Thomas Aylott - subtleGradient wrote:
>> I gave up on regex finally and mangled HTML around a bit to work
>> with the normal select brackets internal TextMate command.
> I wrote a perl script with a nested tag killer as tmCommand. Fine.
> It works and I believe I caught 99% of all exceptions within HTML/
> XML ;)
> And it is fast even for large document with 10000 lines (ca. 100ms).
> If my document is larger than ca. 540kB the tmCommand doesn't work.
> I don't know why, but I guess there is a maximum size for passing
> parameter, or what ever.
> OK. This script outputs the offset of the start tag, the length of
> the found text chunk, and I can output the entire text chunk.
> Now my question:
> Is there a way to highlight this text by using a macro/command
> WITHOUT TMTOOLS? I can copy this text into the clipboard but then ??
> Any ideas?
Output as snippet?
More information about the textmate