> Have you checked out the support for lstlisting in LyX 1.5.x? I gather > from the wiki that Bo Peng is responsible for it (props to Bo). It's > not on the environment roster; you get it with Insert -> Program > Listing. Right click the widget handle to see all the controllable stuff.
I know the mentioned problems with listings but they are not easy to solve. I also recommend using a listings child document for long listings. Cheers, Bo