xTxT Documentation

Paragraph Text (/p)

/p
This is some text.
And some more text.

Settings

$style
(optional) An HTML style string to apply to the element.
$demo
(optional) A boolean value indicating whether an empty paragraph should supply lorem ipsum text as a placeholder. This is used for documentation purposes.

The simplest markup is plain paragraph text.

Simple Paragraph Text

Paragraph text is identified using /p at the beginning of the line. For example, the following xTxT code;

/p 
This is an example paragraph.

renders as;

This is an example paragraph.

For convenience, a markup block that has no markup command is also treated as a /p. Thus, this markup;

This is an example paragraph.

also renders as;

<p>This is an example paragraph.</p>

Long Paragraph Text

Long text does not need to be placed on a single line. Carriage returns do not directly render in the output, thus;

/p 
This is an example paragraph. 
This is an example paragraph. 
This is an example paragraph. 
This is an example paragraph.

and;

This is an example paragraph. 
This is an example paragraph. 
This is an example paragraph. 
This is an example paragraph.

Styling - Bold, Italics, and Underline

Styling is done through the use of simple non-directional grouping symbols.

See Text Formatting for details.


Forcing Line Breaks

If you want a line break to appear in your text, end it with a space and a backslash;

This text is \
broken

Renders as;

This text is
broken

Note that the space is important to distinguish a line break from an italics formatting request.