[TxMt] [ANN] Select Balanced HTML Tag!!!2!
Hans-Joerg Bibiko
bibiko at eva.mpg.de
Thu Nov 22 15:16:26 UTC 2007
Hi,
here comes the next version of the TENTATIVE macro for selecting
balanced HTML/PLIST or XML tags (according to TM_MODE).
I fixed some tiny things.
But there is one big issue.
If I breach the logical structure of an html document like there's is
a single "</b>" without an open tag this macro cannot match the
correct tags. Almost all browser will ignore such things. But the
macro can't do that up to now.
What is the best practice of this? Should the macro only match a
correct match? Meaning if the opened tag differs from the closed tag
it won't highlight something?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Select Balanced XHTML Tags.tmMacro
Type: application/octet-stream
Size: 5387 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20071122/97d6ef83/attachment.tmMacro>
-------------- next part --------------
Best,
--Hans
More information about the textmate
mailing list