Florian <[email protected]> sez:

>can someone please help me out. I have set markdown as my default
>language for new documents (with the setting described here
>http://hackmake.org/2012/05/02/markdown-language-new-bbedit-document).
>But when I want to save such a new document, it always shows the .md-
>extension. Although this makes sense I would prefer to save the texts
>for sake of portability to mobile devices which do not understand
>the .md-extension as .txt. Could someone help me out how to accomplish
>it, that markdown files default to .txt-extension when saving.


In BBEdit 10.1.1 and later, you can set an expert preference to specify the
preferred filename extension for any language by issuing a Terminal command
of this form:

defaults write com.barebones.bbedit
PreferredFilenameExtension_<LanguageName> -string "abc"

where <LanguageName> is the actual language name; for example:

defaults write com.barebones.bbedit PreferredFilenameExtension_C++ -string
"cxx"

defaults write com.barebones.bbedit PreferredFilenameExtension_Markdown
-string "txt"

(Please note the extension you specify should *not* include the leading
period.)


Regards,

 Patrick Woolsey
==
Bare Bones Software, Inc.                      <http://www.barebones.com>
P.O. Box 1048, Bedford, MA 01730-1048

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

Reply via email to