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 vary, my LyX speaks
   German) or raw LaTeX (ERT).
   
   Read its documentation to find out how to style the code with colours
   (in the documents LaTeX preamble or the listing settings field under
   Document>Settings>Text Format).
   
b) use Pygments http://pygments.org to generate LaTeX code for a coloured
   listing and insert as ERT or as Subdocument.
   
c) use some other tool to generate a PDF or PS version of the listing
   and insert as graphic.
   
Günter

Reply via email to