On Oct 14, 2007, at 9:38 AM, Julian Vrieslander wrote:
For most of my work in BBEdit, I want tab = 4 spaces, so that's
what I have
set in Preferences. But I often need to work on data files which
are most
easily read when displayed with tab = 15 spaces. Currently I am
wasting a
lot of time bringing up the Preferences window to change the tab
setting
between these two modes.
You don't have to bring up the preferences window and change the
global tab settings. You can bring up the Fonts panel from the View -
> Text Display menu, and alter the Tab setting for just this
document. Depending upon your settings in "Text Files" in the
preferences, if that setting will stick (once you save the window
once when the hollow "state modified" diamond is present) for that
one document.
Is there a way to embed a metadata item in these data files, which
would
override the tab setting in Preferences, so that when I am working
in one of
these files, BBEdit will use tab = 15 instead of 4?
That is another option. You can turn on Emacs local variables in the
"Text Files" preferences, then use a local variable block that
specifies the tab width. This is covered on page 206 of the User Manual.
Alternatively, is it possible to script BBEdit so I can tell it to
use tab =
15 for the frontmost document, without changing the setting in
Preferences
or changing the display of other open documents? I have a basic
grasp of
AppleScript.
tell application "BBEdit"
set tab width of text window 1 to 15
end tell
Jim
--
------------------------------------------------------------------
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]>