At 09:42 -0700 on 08/23/2011, Watts Martin wrote about Re: Edit both start and closing HTML tags at once?:

I do suspect one could replicate
this functionality in an AppleScript, though -- find the tag containing
the insertion point, perhaps by searching backward for the "<" and then
forward for the ">", then replacing both it and the matching closing tag
with whatever the user inputs in a dialog box. (This could be
fascinatingly catastrophic if you used it on an HTML tag that didn't
have a matching close tag, of course, unless it had a list of
"self-closing" tags to keep it from doing that.)

Even worse is with HTML (as opposed to XHTML) where the closing tag is optional (ie: </P> tags are optional so unless you always use them, they are not always there to find since the next <P> implicitly closed the prior one).

--
You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to bbedit@googlegroups.com
To unsubscribe from this group, send email to
bbedit+unsubscr...@googlegroups.com
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, please email "supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to