I have used this Highlight converter with good results.

http://www.andre-simon.de/

Output in Latex and then import into your LyX document.


--- On Tue, 11/4/08, Ernesto Posse <[EMAIL PROTECTED]> wrote:

> From: Ernesto Posse <[EMAIL PROTECTED]>
> Subject: Re: How to insert colored program listing in LYX
> To: lyx-users@lists.lyx.org
> Cc: "Md. Golam Parvez" <[EMAIL PROTECTED]>
> Date: Tuesday, November 4, 2008, 8:52 AM
> And if your language is not on the list, and you know a
> little Python,
> I recommend Pygments (http://pygments.org) a very nice
> syntax
> colouring package that generates, among other things, LaTeX
> which you
> then can include as a file in your LyX document.
> 
> 
> 
> On Tue, Nov 4, 2008 at 7:54 AM, Siegfried
> MEUNIER-GUTTIN-CLUZEL
> <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > You can use the listings package ( Insert >
> Listings ).
> > If you right-clic on the listing insert box, you can
> choose the language you
> > use and the syntax will be highlighted.
> > In the listings manual there are many options, so I
> suppose you can change
> > the colors if you really want.
> >
> > Hope it helps.
> >
> > Siegfried.
> >
> 
> 
> 
> -- 
> Ernesto Posse
> 
> Applied Formal Methods Group - Software Technology Lab
> School of Computing
> Queen's University - Kingston, Ontario, Canada


      

Reply via email to