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.
MATLAB and quotes
Moderators: AmigoJack, bbadmin, helios, MudGuard
-
Jim Eldred
Re: MATLAB and quotes
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
Jim
-
Brian McGill
Re: MATLAB and quotes
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.
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.
-
David Union
Re: MATLAB and quotes
Hi
have you found a way to get debugging working in this editor
with MATLAB?
Thanks in advance
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)