On Nov 20, 2007, at 1: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.
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
Well, don't hold on on me here! Give me the TMTOOLS version now and we can figure out a better version later.
Oh, and have I mentioned how much we all love you?
—Thomas Aylott – subtleGradient—