$Date$
$Revision$
elements
programlistingco
programlistingco
Element
programlistingco
&programlistingco.purpose;
&programlistingco.synopsis.gen;
Description
Callouts, such as numbered bullets, are an annotation mechanism. In an
online system, these bullets are frequently hot,
and clicking on
them sends you to the corresponding annotation.
A ProgramListingCO is a wrapper around an AreaSpec and
a ProgramListing. An AreaSpec identifies the locations
(coordinates)
in the ProgramListing where the callouts occur.
The ProgramListingCO may also contain the list of annotations in
a CalloutList, although the CalloutList may also
occur outside of the wrapper, elsewhere in the document.
It is also possible to embed CO elements directly in the
verbatim text, in order to avoid having to calculate the
correct coordinates. If you decided to go this route, use a
ProgramListing and a CalloutList without the
ProgramListingCO wrapper. A ProgramListingCO
must specify at least one coordinate.
For a complete description of callouts, see Callout.
Processing expectations
&format.block; &pexp.linespecific;
The mandatory processing expectations of a ProgramListingCO are
minimal: a system is expected to render the program listing and the
callout list, if present.
If explicit CO elements are embedded in a
ProgramListing, they must generate appropriate
callout marks.
In online environments, the processing system may be able to instantiate
the linking relationships between the callout marks in the program listing and
the annotations.
Some systems may even be able to go a step further and generate
the callout marks automatically from the coordinate information,
but this level of sophistication is not mandatory.
&programlistingco.parents.gen;
&programlistingco.children.gen;
See Also
&programlistingco.seealso.gen;
Examples
&programlistingco.example.1.txt;
&programlistingco.example.1.gen;
&programlistingco.example.seealso.gen;