I've noticed that when I insert multi-line clippings that have indented
blocks, something like:

#INDENT#function #INSERTION#(<##>) {
    <#code#>
}

The indentation before "<#code#>" will be verbatim from the clipping,
regardless of the current document's "auto-expand tab" settings. This is
true whether you use four spaces or a hard tab character.

So: Is there a way to make hard tab characters in clippings respect current
document settings for auto-expand tabs and tab width? That way, you could
just make sure to always use hard tabs in clippings, and they would (I
think) just Do The Right Thing in your document. While I don't think BBEdit
can do this, I want to double-check that I'm not missing something before
putting this in as a feature request. :)

(For the record, I have a little AppleScript that outputs either a hard tab
character or the proper number of spaces based on those settings, and I
suppose I could modify every clipping to use "#script tab.scpt#", but this
seems like something that could be useful in the actual editor.)

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].

Reply via email to