$Date$ $Revision$ elements programlisting programlisting Element programlisting &programlisting.purpose; &programlisting.synopsis.gen; Description A ProgramListing is a verbatim environment for program source or source fragment listings. ProgramListings are often placed in Examples or Figures so that they can be cross-referenced from the text. Processing Expectations &format.block; &pexp.linespecific; ProgramListings are usually displayed in a fixed width font. Other markup within a ProgramListing is recognized. Contrast this with systems like &LaTeX;, in which verbatim environments disable markup recognition. If you want to disable markup recognition, you must use a &CDATA; section: tags and &entities; are not recognized. The only markup that is recognized is the end-of-section marker, which is two "]"'s in a row followed by a >. ]]> ]]> ]]> Two markup tags have special significance in ProgramListings: CO and LineAnnotation. A CO identifies the location of a Callout. A LineAnnotation is a comment, added by the documentor—not the programmer. Processing expectations &pexp.linespecific; &FutureChanges; &fu.interfacedefinition; &FutureChanges; The xml:space attribute is automatically provided in the XML DTD. &programlisting.parents.gen; &programlisting.children.gen; Attributes format The Format attribute applies the linespecific notation to all ProgramListings. All white space and line breaks must be preserved. linenumbering Line numbering indicates whether or not the lines of a ProgramListing are to be automatically numbered. The details of numbering (every line or only selected lines, on the left or right, etc.) are left up to the processing application. Be aware that not all processors are capable of numbering lines. width Width specifies the width (in characters) of the longest line in this ProgramListing (formatters may use this value to determine scaling or rotation). See Also &programlisting.seealso.gen; Examples &programlisting.example.seealso.gen;