[TxMt] User defined symbols and folding

Carsten Hoever hoever at gmx.de
Sun Jan 6 12:06:25 UTC 2008


Hi,

I am using comments like

%  
= 
= 
= 
= 
= 
= 
= 
= 
========================================================================
% Doing something...
%  
= 
= 
= 
= 
= 
= 
= 
= 
========================================================================

(...)

%  
= 
= 
= 
= 
= 
= 
= 
= 
========================================================================
% Doing another thing...
%  
= 
= 
= 
= 
= 
= 
= 
= 
========================================================================

(...)

to structure the code inside my MATLAB files. For easier navigation I  
would like to use these comments as folding markers and symbols (for  
the "Go to symbol" command). I know that I have to play around with  
the language grammar to do so, but alas my more than limited knowledge  
of regular expressions has prevented me from succeeding. Maybe one of  
the language grammar/regex experts here has a quick tip for me?

Thanks,

Carsten



More information about the textmate mailing list