Here's a script to change tab width via a dialog. --CODE BEGINS (* Set tab width in BBEdit Almost all is copied from message #7 by Marcus Garvey at http://macscripter.net/viewtopic.php?pid=100407*) tell application "BBEdit" repeat set dialogResult to (display dialog "Enter tab width:" default answer "") try set tabWidth to (text returned of dialogResult) as number if (class of tabWidth is integer) then exit repeat end try display dialog "The starting number needs to be a valid integer!" buttons {"Enter again", "Cancel"} default button 1 end repeat set tab width of window 1 of text document 1 to tabWidth end tell --CODE ENDS--
On Jul 27, 12:11 pm, Rod Buchanan <[email protected]> wrote: > On Jul 26, 2011, at 8:23 PM, Watts Martin wrote: > > > Kendall Conrad wrote: > > >> I don't have BBEdit 10, but for 9, you go to Languages, then Options > >> to get to those settings. > > > Yep, there's an equivalent in BBEdit 10 (it's shuffled a bit), but that's > > not actually going to help with my use case: I need some HTML files to have > > tab width 4 and some to have tab width 2. I was hoping there was a way to > > set that for a *document,* not a language type, and have that setting be > > "sticky" (saved in the document's resource fork, or whatever). > > > As near as I can tell, there's no way to adjust the tab width for a > > document at *all* -- you can only change the editor default and the > > per-language setting. I'm surprised, thinking about it, that tab width > > isn't adjustable via the per-document Text Options. (And a little surprised > > those aren't saved with documents.) > > Look at View -> Text Display -> Show Fonts. > > -- > Rod -- 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. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
