On Sep 30, 2006, at 9:59 AM, Charles Payne wrote:
Thought I'd ask this question again. Thanks.
Is there a way to have BBEdit automatically type the corresponding
closing character when you open a set of parantheses, braces, quotes,
etc.? I know there was an input plugin called AutoPairs, but that
would work only on non-Intel Macs.
I've been experimenting with SmileOnMyMac's TextExpander to do auto-
pairing of quotes, parenthesis, brackets, braces, etc. I originally
had it setup to add a closing quote whenever I typed an opening one,
but I found that to be annoying as I'd sometimes end up with unwanted
closing quotes, especially when trying to fix mismatched pairs in
existing code or converting a double quote to a single quote . I ran
into the same frustrating behavior when trying out TextMate's auto-
pairing feature.
To work around this over-zealous insertion of the closing character,
I now have TextExpander set up to just move my insertion point back
one character whenever I type a full pair. For example, when I type
() my cursor automatically ends up between the parenthesis. It only
saves me one keystroke rather than two, but at least I avoid the
unwanted closing characters when I don't want them.
As for wrapping selected text in a pair, BBEdit's Clippings are
ideal. I created several Clippings with different pairs like this:
'#SELECT#'
And then assigned them to handy key combinations, like control-option-'.
Dennis
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>