← Prev in month ← Prev in thread
Next in thread → Next in month →

Re: [docbook] why is example often used to contain programlisting?

From
Colin Shapiro <>
Date
2006-11-02T04:06:29+00:00
ID
Thread
Re: [docbook] why is example often used to contain programlisting?
On 11/1/06, Chris Chiasson <> wrote:

An example is a rather general name for something. I guess that one's
source code could be an example of ... itself.

Is there another element that would be a good/better container for
programlisting?

maybe something that accepts a title and allows for a small amount of

introductory text

Keep in mind that Examples can be automatically numbered and indexed in a list of examples with the default stylesheets.

If you're using a ProgramListing as a formal example, which you want to be numbered and included in a list of examples, then I think it's perfectly appropriate to contain it within an Example element.
← Prev in month ← Prev in thread
Next in thread → Next in month →