I have developed another solution to inserting matlab code into Lyx using the 'highlight.m' function from the matlab file exchange. This function creates latex output for the syntax colored matlab code. I wrote a driver function matlb2tex.m that takes care of the details. You can insert the latex into an ERT in your Lyx document.
The matlab code and a sample Lyx document are in the attached zip file. Bob http://n2.nabble.com/file/n2865240/matlab2tex.zip matlab2tex.zip -- View this message in context: http://n2.nabble.com/A-method-to-insert-syntax-colored-matlab-code-into-Lyx-tp2865240p2865240.html Sent from the LyX - Users mailing list archive at Nabble.com.