Today I needed to edit some MATLAB files in SlickEdit, which I rarely do, so I've never really configured it before. So I figured I'd get everything just the way I liked it as far as formatting, etc. First oddity: in the managed languages (Options -> Languages -> Language Manager) I have an entry for MATLAB (under Application Languages) **and** an entry for Matlab (under Miscellaneous Languages). My first thought was that years ago I might have added one of them myself before SlickEdit supported MATLAB. But both have the SlickEdit icon next to them and won't let me delete.

Also one of them (Matlab) had the keywords correctly specified in the Color Coding section of the options, the other (MATLAB) had none. SlickEdit appeared to be selecting "MATLAB" for files with the ".m" extension, even though the language options for MATLAB had the "mm" file extension... which isn't a MATLAB file extension, it's an Objective-C extension (I'm told... never touched the stuff myself). So I tried to get SlickEdit to select "Matlab" for documents ending in ".m" (the standard extension), but even when I did it explicitly from the "Document -> Select Mode" entry, it still favored "MATLAB". I changed the file extension in the MATLAB entry, but no difference. I managed to get the keywords formatted finally by going to MATLAB in the language options color coding section section and having it use the "Matlab" profile.

OK, next issue was try to get formatting of things like indentation to work. That's when I realized that the MATLAB entry really thinks it's Objective-C: the formatting options under the profile are full of Objective-C like options. Maybe what's going on here is that somehow the "Objective-C" options have gotten tagged with the name MATLAB... and also somehow ".m" files get assigned to MATLAB, even though the extension is not the one in the MATLAB options entry. My best guess is that somehow the name associated with the Objective-C options got overwritten, and that SlickEdit doesn't care about capitalization, so at least in some of its code paths it sees MATLAB and Matlab as the same. By the way, Objective-C doesn't appear in my Language list at all.

Obviously I'd like to have only one Matlab (or MATLAB, which is what MATLAB's creators prefer, but I really couldn't care) entry, and aside from cosmetics, I'd like to know I have the right options available under that entry. So my best guess as to a first step would be to change the MATLAB language name to Objective C, but I'm just guessing here, and I don't know where I would do that anyway...

This is SlickEdit 21.0.3.0 with latest hotfix for that version, Debian/Linux 9.3