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/>

--
This is the BBEdit Talk public discussion group. 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>

--- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].

Reply via email to