-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Ability to set default highlighting for extension-less files. #10753
Comments
This makes sense to me. Adding to backlog for prioritization. |
We don't do this with any extensions (we do it per file). So basically it looks like we need to bring this card back - https://trello.com/c/fH2JF9S6/338-101-user-selected-language-syntax-mode-per-file-extension-2 I'll move this from the icebox to the backlog and close the issue. |
@ryanstewart I'm sorry, but actually, languages can already be set per file extension using the Language Chooser. As soon as you click |
@marcelgerber @ryanstewart |
It definitely works fine for me. |
Switching Less files highlighting to C does appear to work as mentioned. But I can reproduce the issue for extensionless files. This is what I did (windows): Created a new file and saved it with no extension. This aside however, I understood the original bug to also be about not having to explicitly set as default for a file with unknown mode -- So whatever mode is chosen for an unknown file becomes the mode by default. |
Hello everyone. I'm having an issue with this and was wondering if anyone knew the status or a workaround. Steps to reproduce
The default language for . Files has not been retained🤔 |
@meeksdoteric I have fixed it, I haven't been free for a while to write some unit tests for it. It should come in 1.7. |
Easy fix I did a while ago: Switch to Atom, awesome editor. Also I think its a bit rude from @ryanstewart to close this legit issue hasty with false assumptions / claims. If I remember this correctly. |
@nextgenthemes well that's funny, I just deleted Atom today in favor of Brackets ;) |
Because of this #10141 and playing around I just got too the unfortunate fact that we can not set a default highlighting for extension-less files.
Steps to reproduce:
Expected:
4. Make the grey "(default)" text actually move to what was selected.
5. Open a new extension-less file and have it highlighted with the previous "as default" selected highlighting language.
The text was updated successfully, but these errors were encountered: