Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get language (file type) from Brackets #94

Open
aleung opened this issue Aug 4, 2015 · 2 comments
Open

Get language (file type) from Brackets #94

aleung opened this issue Aug 4, 2015 · 2 comments

Comments

@aleung
Copy link

aleung commented Aug 4, 2015

Brackets supports to define customized file extensions for languages in brackets.json:

    "language.fileExtensions": {
        "es": "javascript"
    }

Brackets supports a convenient way to add new file extension on UI by select in drop down menu. It adds above configuration automatically. See this answer: http://stackoverflow.com/a/21867052/94148

Can Brackets-Icons read it as well? I also notice that Brackets API has a method to get language from file path name, don't know if it helps or not. http://brackets.io/docs/current/modules/language/LanguageManager.html#-getLanguageForPath

@ivogabe
Copy link
Owner

ivogabe commented Aug 6, 2015

Thanks for the suggestion. I'm not sure whether this is easy to implement, but I do find this an interesting suggestion, so I'll take a look at this.

@chris-scheurle
Copy link

I just wanted to open an issue with the same suggestion. 😄

And it would be really cool, if you could also support the mappings in language.fileNames. 😎

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

No branches or pull requests

3 participants