Re: Per document tab widths

2011-07-28 Thread Steve Samuels
Here's a script that to set the tab width for a document with a dialog. --CODE BEGINS (* Set document tab width in BBEdit Most is copied from Marcus Garvey's message #7 at http://macscripter.net/viewtopic.php?pid=100407 *) tell application BBEdit repeat set dialogResult to (display dialog Enter a

Re: Per document tab widths

2011-07-28 Thread Steve Samuels
I put a script set tab widths via a dialog at: http://www.mediafire.com/?ndchk0imd9u9o -- Steve On Jul 27, 12:11 pm, Rod Buchanan rod_li...@kdsi.net 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

Re: Per document tab widths

2011-07-28 Thread hermione_havanese
My problem is the opposite, sort of. After upgrading to Lion, new text is detabbed, but I want it tabbed. I've looked in every preference, but can't find it. Every time I hit tab, I get three spaces. Can anyone help? Thanks. -- You received this message because you are subscribed to the

Re: Per document tab widths

2011-07-27 Thread Bruce Van Allen
On 2011-07-26, Watts Martin wrote: 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

Re: Per document tab widths

2011-07-27 Thread Doug McNutt
At 10:40 -0700 7/27/11, Watts Martin wrote: Bruce Van Allen wrote, and I snipped: I suppose to be precise I should have said there appeared to be no UI control to adjust the tab width on a document-level basis. Just in case anyone at Bare Bones cares: While you're making tab width adjustable

Re: Per document tab widths

2011-07-27 Thread David Kelly
On Wed, Jul 27, 2011 at 12:04:32PM -0600, Doug McNutt wrote: Just in case anyone at Bare Bones cares: While you're making tab width adjustable on a per file basis it would really be great if you could arrange for tab stops as in a real typewriter. I am continually frustrated with columnar

Re: Per document tab widths

2011-07-27 Thread Doug McNutt
At 13:13 -0500 7/27/11, David Kelly wrote: On Wed, Jul 27, 2011 at 12:04:32PM -0600, Doug McNutt wrote: Just in case anyone at Bare Bones cares: While you're making tab width adjustable on a per file basis it would really be great if you could arrange for tab stops as in a real typewriter.

Re: Per document tab widths

2011-07-27 Thread Watts Martin
David Kelly wrote: In my old age I've come to prefer hard spaces so that nobody comes along and messes up my formatting just because they used a different tab value. This is what eventually converted me to the spaces side of the spaces vs. tabs argument. :) (That, and Python coding --

Re: Per document tab widths

2011-07-27 Thread Rod Buchanan
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

Re: Per document tab widths

2011-07-27 Thread Rod Buchanan
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

Per document tab widths

2011-07-26 Thread Watts Martin
One of my clients has decided that PHP documents should use 4-space tabs, while PHP *templates* should use 2-space tabs. Is there a way to set (ideally persistently) tab width on a per-document basis in BBEdit 10 other than using the Emacs variable block? (I'd thought that was in either Text

Re: Per document tab widths

2011-07-26 Thread Kendall Conrad
I don't have BBEdit 10, but for 9, you go to Languages, then Options to get to those settings. -Kendall On Jul 26, 4:34 pm, Watts Martin lay...@gmail.com wrote: One of my clients has decided that PHP documents should use 4-space tabs, while PHP *templates* should use 2-space tabs. Is there a

Re: Per document tab widths

2011-07-26 Thread Watts Martin
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

Re: Per document tab widths

2011-07-26 Thread Steve Samuels
I don't know anything about PHP, but if 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

Re: Per document tab widths

2011-07-26 Thread Steve Samuels
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