How could I make it so that “dotfiles” that match the file extensions of a common file format use the syntax highlighting for that filetype instead of the syntax highlighting normally used for dotfiles (Plain Text, by default)?
I have files in my project that are named like .css, .js, and .php which are differentiated by the folder they appear in. So, these aren’t really dotfiles in the usual configuration file sense; they just look like dotfiles. I would like the syntax highlighting to automatically recognize these as CSS, JS, and PHP, respectively. Currently, they are given Plain Text highlighting when opened.