-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Configure octave syntax highlight support as MATLAB (.m) files. #2228
Comments
Sorry, i forgot to say that the MATLAB syntax highlight is already supported. |
And i too noticed that, the (.m) files are setted to Objective-C syntax highlight. |
Normally that would require only adding it to https://github.com/ajaxorg/ace/blob/master/lib/ace/ext/modelist.js#L117, but |
Thanks nightwing, I code at cloud9, it's supports that i change manually the syntax highlights, but its annouying. |
Ah, i see. It also needs a way to manually change default mode for all files, not just one. |
It's what i should say since the beginning. |
Until the ui is added, you can run the following code snippet in the browser console. var settingPlugin = apf.getPlugin("settings");
types = settingPlugin.getJson("user/ace/custom-types");
types["m"] = "matlab";
settingPlugin.setJson("user/ace/custom-types", types) merging this issue into #849 |
Thank you, nightwing :) |
Octave and MATLAB files use the same syntax highlight, but the editor does not know that.
Could we teach him?
The text was updated successfully, but these errors were encountered: