DAISY—Structure Guidelines: Elements, Inline Elements, Information Object Computer Code

DAISY—Structure Guidelines: Elements, Inline Elements, Information Object Computer Code

Information Object

Computer Code

Definition

Computer programming language.

Markup

Computer code, which is usually displayed in the printed book in Courier bold print, is marked with the <code> tag. This tag can be used in either block or inline settings.

Syntax

<code>…</code>

Example

<p>For example, <code>printf("--hello, world-- \n");</code> would display "--hello, world--" on the screen, followed by a carriage return.</p>

See also Information Object: Keyboard Input and Information Object: Sample.

Tags: DAISY