I'm trying to cross reference program code line numbers within a program listing using lyx. From what I can tell, both labels and ERT are disabled within the program listing, but I'm not sure why.
I know in regular latex, you can add labels within a program listing, but it appears disabled in lyx. See: ftp://ftp.tex.ac.uk/tex-archive/macros/latex/contrib/listings/listings.pdf
The internet seems strangely unhelpful on this issue, unless I'm missing something obvious. Any ideas?