pol wrote:
> I would like to automatically enumerate blocks of lines of code, 
> that is lines formatted as 'lyx code'.
> 
> Enumeration should be carried through all the blocks in the document.
> 
> Any hints?

I recommend to use the listings package to typeset your code instead of
"Lyx Code". This basically means that you have to insert the code in an
ERT box. However, the benefits are numerous: You not only get beautiful
listings (with syntax highlighting etc.), but also can assign labels to
lines that can later be used to refer to the line number.

Daniel

Reply via email to