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
Extension .mjs is not recognized as javascript. #3230
Comments
See the manual |
Still, the |
Also uncomment the |
@elextr Thank you. That worked, but the purpose of my bug report remains; I hope Geany will add Additionally, when a user changes a Filetype, for an extension Geany doesn't recognize via Lastly, on the information bar, at the bottom of Geany, I find it very un-intitive that you cannot just click These enhancements are certainly not a necessity, but I know they'll be appreciated by newcomers. |
I'm sure if "somebody"1 made a pull request it wouldn't be a problem, so long as And any of the other enhancements could be accepted, but again "somebody" has to do it. Especially to explain how the "Would you like Geany to always open .mjs files as the JavaScript filetype?" would be extendable to anything else, having it hard coded seems weird if Footnotes
|
I'm using a concrete example to explain an abstraction. I'm not suggesting to hard code Instead, I'm suggesting that any time a Geany user encounters "Filetype: None", that after they set that file type using When a graphical user interface is complete, there's rarely a need to read a manual. If you want to do something to a thing, you right-click on that thing, and it shows you a list of "all you can do" with the thing that was right-clicked. You can intuitively discover anything you want to do and the application asks you if you want it to remember any preference the first time you do it. This is ideal, but I realize that is a whole lot of work to get it to that stage. I'm merely suggesting things that go that direction. @elextr |
I'm not familiar with this code base, I'm not sure which file to modify to add .mjs as an extension for javascript. Would it be line 144 here? : Maybe you could add a line under that line that says: But, I can confirm this: people that use Node.js and ecmascript modules, must use the extension |
This is an unhelpful comment; pointing to a sample tutorial would be better. The manual seems geared to help those already familiar with the system, and those already understanding the nuances between Filetype definitions, Custom filetypes, Special file.filetypes, and Filetype extensions. |
The system filetype_extensions.conf that you edited locally.
If someone wrote one they could put it on the wiki and post a link here.
If you want awk to be treated like perl, can't you just add |
Different extension, different keywords. I can change
|
Ok, fair enough, but since its nothing to do with the OP about |
Geany 1.37.1
Debian 11
Please associate the extension
.mjs
with javascript. When I open a mjs file, that contains javascript, the syntax highlighting I expect doesn't occur.Furthermore, I see no way, within Geany's settings to create this association for future times that I open a
.mjs
file.Lastly, at the bottom of the screen, where is says "Filetype: None", clicking that doesn't allow you to manually set the file type. I find this fact very non-intuitive.
The text was updated successfully, but these errors were encountered: