On 2/16/21 at 2:49 PM,
sirb...@gmail.com (Ken L) wrote:
>Thanks for everyone's input on this. Not sure I have a
>"special" environment, but I do tend not to use the .pl
>extension on my Perl source files (the target environments
>don't need it).
In general, as long as the target environment allows your Perl
files to have suffixes, you're better off with them than
without. :-)
>And as I mentioned to Rich separately, I do have several file extensions
>that I use just for my stuff (I wouldn't expect MacOS to
>recognize them).
Though there is no convenient way to make the OS recognize
custom extensions, you can train BBEdit to do so by either:
(a) adding custom extension mappings in the Languages prefs pane
(for files whose contents have a known language type, such as
"Markdown") or
(b) adding extensions to the list in the Text Files prefs pane
(for files which contain plain, unstructured text).
>I do notice that certain file types (.txt, .pl, .zip) are
>consistently recognized in the the open... dialog.
That's because either BBEdit, the OS, or both, already "know"
that such files are either text files or that BBEdit can
otherwise handle their contents (e.g. a Zip archive).
>Some seem hit or miss (like .log), and others (.tgz, image files, no file
>extension) are not.
These are files whose contents BBEdit and/or the OS either do
not recognize (e.g. extensionless files with no internal
directives), or do recognize but also know they aren't editable
text (e.g. image files :-).
>Interestingly, Word docs (docx) are recognized ...
That's because they're fundamentally just Zip archives with
suitably structured contents. :-)
Regards
Patrick Woolsey
==
Bare Bones Software, Inc. <
https://www.barebones.com/>