I don't know anything about PHP, but if the "documents" and "templates" have different file extensions, you could write an attachment script to "set tab width to" the number appropriate to the extension. Write the script to run when a document is opened or saved. .See the Manual section on "Using Attachment Scripts". (I don't have the Version 10 page number, I'm afraid. I've reverted to 9 because I prefer the way projects behave there.)
Steve On Jul 26, 9:23 pm, Watts Martin <[email protected]> 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.) > > -- > Watts Martin <[email protected]> > > smime.p7s > 5KViewDownload -- 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>
