On 2/16/21 at 2:49 PM, [email protected] (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/>
--
This is the BBEdit Talk public discussion group. If you have a feature request or need
technical support, please email "[email protected]" rather than posting here.
Follow @bbedit on Twitter: <https://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 view this discussion on the web visit
https://groups.google.com/d/msgid/bbedit/r480Ps-10146i-F19C32C3CAE646448CA76DD08E2A42BD%40Cylinder.local.