|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Matlab related HRC FilesI've modified the matlab.hrc to provide an Outline in Eclipse, and also created HRC files for viewing Simulink .mdl files and editing Real-Time Workshop TLC files.
Prototype entries: <prototype name="matlab" group="rare" description="MatLab"> <location link="file://C:/Documents and Settings/Bob/workspace/Files/hrcFiles/matlab.hrc"/> <filename>/\.m$/i</filename> </prototype> <prototype name="MathWorksTLC" group="rare" description="MathWorks TLC"> <location link="file://C:/Documents and Settings/Bob/workspace/Files/hrcFiles/MathWorksTLC.hrc"/> <filename>/\.tlc$/i</filename> <annotation> <documentation> http://www.mathworks.com/access/helpdesk/help/toolbox/rtw/ MathWorks Target Language Compiler </documentation> </annotation> </prototype> <prototype name="MathWorksMDL" group="rare" description="MathWorks Simulink Model"> <location link="file://C:/Documents and Settings/Bob/workspace/Files/hrcFiles/MathWorksMDL.hrc"/> <filename>/\.mdl/i</filename> <firstline>/^Model \{$/</firstline> <firstline>/^Library \{$/</firstline> </prototype> I've tried these on a few files, and will be trying to use them more in the coming weeks. In the matlab.hrc I really wasn't sure what to do with the function keyword. A file can either consist solely of a root function and sub functions without any corresponding end statements, or if every function has an end, you can have nested functions in addition to root level functions. I could configure it either to show the functions without ends, or the nested functions, but not both, correctly. In the TLC there are line continuation characters. Really not sure how to do more than highlight these, and so tagging the right scheme is haphazard. Feedback appreciated. Bob ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ colorer-talks mailing list colorer-talks@... https://lists.sourceforge.net/lists/listinfo/colorer-talks |
|
|
Re: Matlab related HRC FilesBob,
Thanks for your contribution, I'll include the changes into the distribution. Feel free to send any updates. As for the problem you've stated, I see a commented out block for function matching. Why doesn't it works? Although a function without end indication is strange, believe it still may be handled with the logic you've commented. I didn't get also your problem with line continuation chars, could you explain it in more details? -- Igor ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ colorer-talks mailing list colorer-talks@... https://lists.sourceforge.net/lists/listinfo/colorer-talks |
| Free Forum Powered by Nabble | Forum Help |