[TxMt] [ANN] Select Balanced HTML Tag!!!1!
Hans-Jörg Bibiko
bibiko at eva.mpg.de
Tue Nov 20 18:06:43 UTC 2007
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.
Hi,
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?
With TMTOOLS it wouldn't be a problem. Also the text size doesn't
matter.
Cheers,
--Hans
More information about the textmate
mailing list