Open lrebrown opened 9 years ago
Not exactly related to your feature, but it may help you anyway: See https://github.com/adobe/brackets/wiki/Language-Support#preferences for how to map a file name to a language, using preferences.
I am working on bash detection too. Take a look: https://github.com/adobe/brackets/pull/10141
Working with files that have no file extension to their filenames, such as unix shell scripts, is a huge PITA. To get syntax highlighting you either are forced to rename the files to add an extension (not always possible/acceptable), or else you must individually change the type selected from the default (text) to bash (in this case), for each and every file you're working with, and do it all over again the next time you open Brackets.
When dealing with a file with no file extension, or otherwise an unrecognised one (to cover extension-less filenames that do actually contain a dot), could brackets not look at the file's magic number (or the text of the file's first line of content) to see if it can determine the type and thus save me the time and frustration of manually doing so. It would be much appreciated. :)