Ah, expert prefs! I should have thought to check them. Thanks very much!
-David
On Wed, 6 Jan 2016, Patrick Woolsey wrote:
On 1/6/16 at 3:36 PM, [email protected] (David Dierauer) wrote:
I have a new co-worker who's impressed with what I've shown her of
BBEdit and is currently trying out TextWrangler. She primarily works
with SQL, and would like to have the default language and syntax
coloring for new documents be SQL (since she frequently pastes queries
into new docs rather than opening existing docs with easily-mappable
extensions). I assumed this would be easy to achieve, but browsing the
prefs and searching the manual have left me mystified.
Can this be achieved, or is it necessary to manually set the doc
language every time?
Yes, you can accomplish this by setting an expert prefs option as follows;
cribbing from the "Expert Preferences" page of the online help (Help ->
BBEdit Help):
====
Language Support
* If you like, you can set the default language for new untitled
documents:
[ by issuing the following Terminal command ]
defaults write com.barebones.bbedit DefaultLanguageNameForNewDocuments
-string "<language name>"
where "<language name>" should be the name of a language shown as
installed in the Language preferences. For example, if you want
all new documents to be Markdown:
defaults write com.barebones.bbedit DefaultLanguageNameForNewDocuments
-string "Markdown"
====
or for example, you can specify the "SQL (Generic)" flavor via:
defaults write com.barebones.bbedit DefaultLanguageNameForNewDocuments
-string "SQL (Generic)"
[PS: TextWrangler also supports this option so you need only change the
bundle identifier in the 'defaults' command to 'com.barebones.textwrangler'.]
Regards,
Patrick Woolsey
==
Bare Bones Software, Inc. <http://www.barebones.com/>