FORTRAN_Mex_Highlig​hter

版本 1.1.0.0 (195.4 KB) 作者: Thomas Clark
Improvement of syntax highlighting for FORTRAN MEX files (using an external editor like GEDIT)
844.0 次下载
更新时间 2009/6/25

查看许可证

I always use an external text editor to write MEX files; because MATLAB's internal editor doesn't give you syntax highlighting on FORTRAN code.

Here, I've improved the editor I use (GEDIT) to highlight (in addition to the usual fortran syntax) all mx* and mex* functions which can be called from a fortran MEX file.

So, for example, when I make a call to 'mxGetPr' from my fortran code, this is highlighted in Orange. It gives me a better sense of whereabouts in the code I am - which can be difficult if, like me, you're a little unfamiliar with the way mex files work.

I also added 'mwPointer', 'mwSize', and 'mwIndex' to the 'Types' list in fortran, so they're highlighted in green, the same as standard fortran declarations (REAL*4, etc).

I'm not an expert, but will try to help with any bugs - and will be glad to add in any improvements.

Hopefully, this won't be used straight-out of the box, (it won't work for all editors) but will enthuse you all to go out and customise your editors for yourselves :)

** Disclaimer ** These are specific instructions for GEDIT and similar editors - it won't work for things like MS Visual Studio etc etc, but might inspire and teach you how to customise other editors. Good luck!

引用格式

Thomas Clark (2024). FORTRAN_Mex_Highlighter (https://www.mathworks.com/matlabcentral/fileexchange/24332-fortran_mex_highlighter), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2008a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Fortran with MATLAB 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.1.0.0

25 June 2009 - Checked support for windows based gedit installations - works flawlessly.

1.0.0.0