Does anybody know if there is a way to copy matlab code from a .m file
and paste it into Microsoft Word so that it stays "pretty" (i.e. the
comments still appear in green and the strings are still maroon)?
Thank you very much,
Ben
1.use SciTE to export the code to RTF file.
2.export the code to html file,then open it with your browser,then copy
and paste to word,the color is still there.
Try this word macro:
<http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=3060&objectType=FILE>
<highlight> contribution in MatlabCentral allows you to export
M-files in coloured RTF files that can be opened into Microsoft Word.
<http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=3791&objectType=file>
Christina Ahrens
The MathWorks, Inc.
"Fabio" <fabio....@gmail.com> wrote in message
news:eeea...@webx.raydaftYaTP...