I would love to have this too for various html tags but I know logically it isn't possible to do after the text is already there.
As mentioned elsewhere the problem with <span> is there is no way for it to be programatically closed since <span> is by default inline - it could close after the first letter... I suppose even before the first letter. Manually inserting the closing tag is the only logical solution unfortunately. There is a "Close Current Tag" command under the Markup menu which you could assign a keystroke to if you don't want to worry about making sure you have the right thing in the clipboard to paste. It still requires you to specify where to close the span by clicking there but you are way smarter and intuitive than the computer. I suppose there would be a way to script it so that you could select the text you want a span to surround, hit a key combo and it puts the span around the text but I will leave that to people who like writing scripts for BBEdit. -- 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.
