Page 1 of 1

MATLAB and quotes

Posted: Tue Jul 09, 2002 7:07 pm
by Brian McGill
Hi. I'm trying to use Textpad for MATLAB. I have found a number of .syn files out there both at TextPad and Matlab sites. But none of them seem to solve a problem I keep encountering, namely:

the single quote ' is both a string delimiter and an operator (indicating the transpose of a matrix). If I tell the .syn file that it is the string delimiter then everytime I use it as an operator it starts string coloration until the next occurrence of the single quote (either as an operator or string delimiter).

For example:
atranspose=a';
somecodehere;
fprintf('This is a string');

is parsed completely incorrectly.

Thanks.

Re: MATLAB and quotes

Posted: Fri Aug 02, 2002 3:12 pm
by Jim Eldred
My solution for this problem was to live without string coloration. Do you know how to get Textpad to filter only .m files on open - i.e. the only way I can see .m files is to select open files of type "All files (*.*) " ?
Jim

Re: MATLAB and quotes

Posted: Fri Aug 02, 2002 4:53 pm
by Brian McGill
What works for me is the following:
Be sure to add MATLAB as a class (under Menu: Configure\New document class)
Be sure that it knows the *.m file type for this class (If you missed it in the wizard creating the new document class try Menu: Configure\Prefences and choose Document Classses\Matlab in the left hand tree - this will let you add file types). MATLAB (*.m) now appears in the Open Files dialog as a category. In particular once I choose the matlab choice ("Files of Type") and open a file using this filter once, then every time I bring up the open box, it defaults to the MATLAB (*.m) choice until I choose another one.

Re: MATLAB and quotes

Posted: Wed May 07, 2003 3:29 pm
by David Union
Hi
have you found a way to get debugging working in this editor
with MATLAB?

Thanks in advance
Brian McGill wrote:What works for me is the following:
Be sure to add MATLAB as a class (under Menu: Configure\New document class)