Dear all,
attached I am providing the lexer files for Code::Blocks to enable Matlab syntax highlighting. Of course Matlab (M-) files cannot be compiled with C::B but everybody that develops S-functions or similar might want to have a look in a M-script file where syntax highlighting is very helpful.
But: I had some troubles integrating the new lexer into Code::Blocks:
1.) I copied the new lexer files into the "share\Codeblocks\lexers" folder. Thus C::B imported the lexer on restart but after that the keywords of all languages after the "M" letter (e.g. Ogre, XBase...) were displaced. This might be a bug in C::B but I would like somebody else to reproduce. To resolve this issue I have completely deleted the C::B settings from registry and application folder. The fresh re-initialisation then was successful.
2.) I have defined user-keywords that include all non-default (extended) Matlab functionality. But they are not highlighted and I don't know why. Can somebody help?
Before I submit the final version as a patch to SourceForge I would like to have these issues solved. Any help is appreciated.
Morten.
Ps.: I know that some function keywords of Matlab7 are missing. This is on purpose to be backwards compatible down to Matlab v6.1.
[attachment deleted by admin]
...hello? ...somebody out there? :lol:
I saw the file has been downloaded several times. If somebody tried and has news for me I would really welcome any comments to continue working on it.
With regards,
Morten.
Keep the good work!
Seems like there aren't much users of Matlab here.
You tried in the Matlab forum?