I don't think Matlab and Objective-C are highlighted because they both have .m extensions and have been interpreted as Objective-C codes.
If you look at the language setting language.yml, the matlab extension is set to .matlab by default, so if you change the language.yml description of Objective-C and Matlab, it will be highlighted.
If, as others have answered, it is an extension issue, you can also highlight something other than .matlab as MATLAB.
In the root directory of the project, create a file called .gitattributes
and write the settings inside.
*.m gitlab-language=matlab
You can now identify and highlight a file with the extension .m
as MATLAB.
© 2024 OneMinuteCode. All rights reserved.