MATLAB (part 2)
Hi again!
Since I’m using gedit as my favourite editor for joining and printing MATLAB files, I wanted correct syntax highlighting.
So far I used this workaround:
sudo gedit /usr/share/mime/packages/freedesktop.org.xml
If you open that file you will see that *.m is also recognized as Objective-C files (look at the end of <mime-type type=”text/x-objcsrc”>).
To fix this you can just comment the whole Objective-C section with the XML “<!– ” and “–>” tags.
Right after this section is the text/x-matlab section.
Save the file.
Now to make gnome recognize the new settings, run
sudo update-mime-database /usr/share/mime
Verify by typing
gnomevfs-info matlabfile.m
it should show
... MIME type : text/x-matlab ...
This should cause gedit to highlight .m files as matlab files.
Have a nice day, Simon
__________________________
Original post can be found here