On Aug 23, 2011, at 10:42 AM, Watts Martin wrote: > Tudor wrote: > >> I still think the Edit Markup command would be the perfect tool for >> editing tags the way I described earlier, and if someone from BBEdit >> reads this thread, please consider this as a feature request. > > You should strongly considering submitting this as, you know, a feature > request. :) > > I'm not sure how often this need actually comes up, which might make it > somewhat low priority, but who knows. 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.)
And nested tags would be a challenge too. <div> <div> <div> </div> <div> </div> </div> <div> </div> </div> -- 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>