Yes, you can. The "listings" package is a good solution as for me ...
For example : \usepackage{listings} ... \lstinputlisting[language=Java, alsolanguage=SQL, label={mylabel}, caption={...}]{myfile.java} ... To insert a hyperref (with the 'hyperref' package) : \ref{mylabel} -----Message d'origine----- De : Invisible Person [mailto:[EMAIL PROTECTED] Envoyé : mercredi 25 mai 2005 16:55 À : lyx-users@lists.lyx.org Objet : Formatting source code Hello list, I want to insert source code ( Java, Sql) into the document. Can I insert it formatted (indent and/or colored) like in an IDE? thanks, Christian