Thanks for the suggestion Carlton. I had a quick look at Tidy and its selectable options under Markup > Tidy ... but I saw nothing there that would just close tags. I'm fussy about how my code is laid out so I've never used Tidy except in extremis. Will it work on just the selected text? If so, what options do I need to chose for it to only close tags?
Perhaps a simpler approach... Can someone suggest a grep that will select all text on one line which follows an opening span tag (see example below) and which precedes a closing tag which is not a span? Example... <p>First line<br /> another line<br /> another line<br /> another line<br /> last line.</p> That's what I always start with. Then I add some spans manually... <p>First line<br /> another line<br /> <span class="ind2">another line<br /> another line<br /> <span class="ind2">last line.</p> ...and I need to close the spans. That's simpler and more limited in scope (always a good thing) than the close tags script I used to use -- though it had its charms. ;-) Rob -- 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 "[email protected]" rather than posting to the group. To unsubscribe from this group, send email to bbedit+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
