Re: [Clip] test if selection is enclosed in a tag?
> The ^!Find command with the R option set will be able to find andhighlight
> the specified tags and everything between them.Larry,
> ^!Find "<chunk>*</chunk" TIRS
I think what you intended was:
^!Find "<chunk>\a*</chunk" TIRS
Please note that this is a greedy pattern. This will pick up
_everything_ between "<chunk>" and the last occurence of "</chunk".
BTW: for the clip in the original question one could think of using
^$GetHTMLTAG$ or ^$GetHTMLTAGName$. It would not be an easy task to
accomplish, since I think the enclosing tags should be found first.
This opens up a range of other questions: how many tags should be
skipped before I stop searching for the enclosing tag, etc, etc...