OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: DOCBOOK: xref to numbered code line?


What's the best way to mark up a code listing if I want it to appear with
numbered lines and I want to refer to specific line numbers without hard
coding the line numbers? If I write "In line 25, the <literal>free</literal>
command deallocates the memory" and then insert more code above line 25, I
don't want to have to change that "25" by hand. 

I'm assuming it's some appropriate subelement of programlisting and then an
xref to that, but I can't figure out what. 

thanks,

Bob DuCharme          www.snee.com/bob           <bob@  
snee.com>  "The elements be kind to thee, and make thy
spirits all of comfort!" Anthony and Cleopatra, III ii



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC