Steve Litt wrote:
Why would one use the listings inset rather than just using the LyXCode environment? The former isn't easily visible in the LyX environment, the latter is. The former is ERT, the latter isn't.
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.