On Thu, Jul 10, 2008 at 03:39:54PM -0700, Ivica1009 wrote: > In my thesis I need to use a lot of C++ code. I am developing code in > Eclipse CDT text editor. > If I copy my code, for example, into the OpenOffice documet, the code > preserves its format and colors.
[I never thought of code having a color that could be preserved, but that's probabl just me ;-)] > If I copy the code into Lyx it does not preserve neither of those. > > Is there a way to copy code from other editors into Lyx in such a way that > at least the format of the code is preserved? There is support for code inclusion using the "listings" package. Andre'