xTxT Documentation

Dictionary Definition List

Usage (Condensed)

/def
Term
Definition (line 1)
Definition (line 2)
...
Definition (line n)

Usage (Full)

/def
.
/dt
Term
.
/dd
Definition (line 1)
Definition (line 2)
...
Definition (line n)
.
\def

Synonyms: definitionlist , deflist , dl

xTxT supports the specification of definition lists, modeled after HTML.

A definition list is a collection of terms and definitions, in such a way that you can group together terms and definitions any way you like. This means that you have one term and one definition, or two terms and one definition, one term and two definitions, 5 terms and 8 definitions, and so on.

There are many ways that you can use definition lists, such as to represent dialogue with the term containing the speaker's name, and the definition containing the speech.

Sub-Elements

Attributes

style
(optional) An HTML style string to apply to the element.

Markup

There are two approaches to marking up definition content.

Simple

/def
Miru
The world's best WebCMS, ever.

Compound

/def

/term

/definition

def

A definition begins with a definition list (/def)

Def (/def)

/def
wIkI
A very cool tool for generating HTML.

Generates the following HTML;

<dl>
	<dt>wIkI</dt>
	<dd>A very cool tool for generating HTML.</dd>
</dl>

Which renders as;

wIkI
A very cool tool for generating HTML.

1.0 Notes

In 1.0, only the amalgamated structure is supported.

e.g.

/def
term
definition line 1
definition line 2