File Exchange

image thumbnail

A Notepad++ function list for MATLAB

version 1.0 (994 KB) by per isakson
Displays Methods and Functions of an m-file in a Tree View Control in the Notepad++ IDE

13 Downloads

Updated 30 Jun 2017

View License

This submission makes use of the two features, Function List, and User Defined Language, UDL, of Notepad++. Function List shows a list of functions and methods of the current file. UDL defines syntax highlighting.
Notepad++ <https://notepad-plus-plus.org/> is a free and open source code editor running in MS Windows. It has been around since 2003 and it's still under development. I think that Notepad++ is a useful complement to the editor of Matlab and I use it to
1. inspect large text files, e.g. data and log files. A few hundred thousand lines is no problem.
2. search (and replace) in m-files; refactor code. It supports regular expressions.
3. quickly approach an unknown code-base
Notepad++ ‘Function-list’ for Matlab, by chen xinfeng, ( http://uk.mathworks.com/matlabcentral/fileexchange/55396-notepad++--function-list--for-matlab ), inspired me to put together a parser, which handles both functions and classes. Thanks to a lot of support by @MAPJe71 and @guy038 at the https://notepad-plus-plus.org/community/, I now have something running.

Installation: This submission contains six xml-files. Contents of these shall be copy&pasted into your files, functionList.xml and userDefineLang.xml, respectively. The two files are found in %APPDATA%\Notepad++ or in the Notepad++ installation. There is a detailed description of the installation process under the Examples tab.

Finally, there is a question attached: Would you like to see a function list parser for Matlab included in Notepad++? If so, let me know in a comment below.

Cite As

per isakson (2020). A Notepad++ function list for MATLAB (https://www.mathworks.com/matlabcentral/fileexchange/63587-a-notepad-function-list-for-matlab), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (4)

Great job, thanks!
It would be great if somebody could pick it up and make it more robust.

Zaka

Yes, Sure why not. it should be included

Excellent work

Hi Per!

You work is great! I just have a problem in Notepad++ v7.5.6 where the function list is not updated automatically with a opened file (I need to press the refresh button) and for every file I also need to set the language for matlab2. Anyway, this does not invalidate your work. Instead, for me is very useful as Matlab editor lacks a lot of features and Npp is the savior with your FL parser.
Please, go ahead and request to the Npp guys to add it into FL by default!

Congratulations!

Updates

1.0

Fixed a typo

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux