Wow, that's quite a quirk of a solution.

For whatever reason, the issue seems either to have resolved itself with the 
latest upgrade or... who knows what.
As of right now .htaccess files are being recognized per the preferences I set 
up.  ¯\_(ツ)_/¯

The interesting thing about your observation is that from what I can tell 
there's no metadata contained by the file created by text edit that BBEdit 
wouldn't be getting rid of when it's opened and emptied -- it's a 0 bite file.  
But maybe the OS 'knows' something about the file (i.e. external metadata).

Thanks for the insight!

> On Mar 6, 2020, at 12:54 PM, GP <[email protected]> wrote:
> 
> I tried this with BBEdit version 12.6.7 (I haven't upgraded yet) and the 
> custom filename extension mapping worked with one big caveat.  The file must 
> not have been saved by BBEdit before the custom filename extension mapping 
> preference setting was made. Whatever file typing metadata BBEdit saved 
> during the previous file save will override any newly added custom filename 
> extension mapping preference. (If you have previous BBEdit saved htaccess 
> extension files, I think you'll have to use the Language popup in an open 
> file's window to change the file language type metadata on the next file save 
> in order for the Apache Configuration File codeless language module to be 
> used the next time that specific file is opened.)
> 
> As a test, I created a test file using TextEdit and saved it. Changed the 
> default extension from rtf to htaccess and then opened it in BBEdit through a 
> Finder open using BBEdit as the opening app and through BBEdit's File Open 
> menu.  In both cases BBEdit used the htaccess file extension to mapping the 
> file Apache Configuration File and use the associated codeless language 
> module for syntax colorizing, etc..

-- 
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/AE06D9D1-0445-4FA8-8EAC-3BBCFB0A7F3F%40gmail.com.

Reply via email to