Hello,
Yes, if you choose a fixed length font like Courrier, the layout of the
listing is left as in your text editor, with the possibility of syntax
highlighting, line numbering and a lot of other possibilities.
For me it works very well : I teach Fortran and I use a lot of program
extracts i
Title: MEUNIER-GUTTIN-CLUZEL
Hello,
Yes, if you first insert the Listings inset and after, you paste your
code ( special paste and plain text ... or something like that ... my
LyX speaks french ! ).
On the screen it was OK and the tree wasn't affected.
Remember I'm on Windows XP with LyX 1.5.6
On Tue, 4 Nov 2008, Siegfried MEUNIER-GUTTIN-CLUZEL wrote:
To: Md. Golam Parvez <[EMAIL PROTECTED]>
From: Siegfried MEUNIER-GUTTIN-CLUZEL <[EMAIL PROTECTED]>
Subject: Re: How to insert colored program listing in LYX
Hello,
You can use the listings package ( Insert > Listings
Md. Golam Parvez schrieb:
> I am using lyx-1.5.6 in UBUNTU 8.04. Can anybody tell me how to insert
> colored program listing. Thanks in advanced.
a) use the listings package
http://dante.ctan.org/CTAN/help/Catalogue/entries/listings.html with
Insert>Listing or Insert>File>Listing (names may
Md. Golam Parvez wrote:
Hi
I am using lyx-1.5.6 in UBUNTU 8.04. Can anybody tell me how to insert
colored program listing. Thanks in advanced.
Golam Parvez
First, make sure you have the listings LaTeX package (listings.sty)
installed, as well as one of the color packages (color.sty or xcolor
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 inse
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 ME
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
Hi
I am using lyx-1.5.6 in UBUNTU 8.04. Can anybody tell me how to insert
colored program listing. Thanks in advanced.
Golam Parvez