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
Missing mode file extensions in CodeMirror.modeInfo #2940
Comments
If you have specific extensions that are missing, file a pull request. Some languages simply don't have extensions associated with them, other are so obscure that none of the people who helped add extensions had a clue what to associate with them. |
Okay. One last quesion: The |
That's a good point. Supporting matching of full filenames would require us to add another method, something like |
Yeah, I'll do, it's an interesting topic. |
Replaces `CodeMirror.findModeByExtension` with `findModeByFileName` to detect nginx config files properly. If `CodeMirror.findModeByFileName` doesn't match anything it automatically tries to find a match via `findModeByExtension`. If that fails to return info as well, we try to determine a mode by calling `CodeMirror.findModeByMIME`. This is the discussion + pr in the CodeMirror repo: * codemirror/codemirror5#2940 * codemirror/codemirror5#3027 Fixes #187
It looks like there are a few modes which aren't defining any file extensions. As I've come to rely on extensions for displaying the correct mode for a given filename, it'd be great if at least those modes that have a unique file extension also have them defined in
mode/meta.js
.I'll be researching some modes myself to see if I can find the extensions for it, but any help is appreciated!
Here's the current list of modes that don't define a file extension:
The text was updated successfully, but these errors were encountered: