The documentation for this is at Help>Customization>5.2. If you look at that and then look at how similar layouts are implemented in the extant layout classes, you shouldn't have too much trouble. Seeing the line numbers and the white-green in LyX itself might be a challenge, but making it possible to use the environments and commands provided by listings.sty without ERT should not be difficult.
Richard Roland Schmitz wrote: > Hi List, > > i'm looking for an code layout (environment) for LyX, wich automaticly > inserts > line numbers and a "table of contents" for all listings. > If it's possible to configure this layout to look a bit like old "endless > paper" (one line with white background, one with green) this would be exactly > what i'm looking for, but that would be a goody. > If there is a tutorial how to write layouts, a RTFM with a link will be > enough. > I knwo i can use the LaTeX "listing package", but ERT's are not really > comfortable. > > -- ================================================================== Richard G Heck, Jr Professor of Philosophy Brown University http://bobjweil.com/heck/ ================================================================== Get my public key from http://sks.keyserver.penguin.de Hash: 0x1DE91F1E66FFBDEC Learn how to sign your email using Thunderbird and GnuPG at: http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto