Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

File type auto-detection for extension-less filenames #10071

Open
lrebrown opened this issue Dec 3, 2014 · 2 comments
Open

File type auto-detection for extension-less filenames #10071

lrebrown opened this issue Dec 3, 2014 · 2 comments

Comments

@lrebrown
Copy link

lrebrown commented Dec 3, 2014

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. :)

@marcelgerber
Copy link
Contributor

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.

@gklo
Copy link

gklo commented Dec 11, 2014

I am working on bash detection too. Take a look: #10141

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants