Content Formatting Macros for Confluence Server and DC

Pre Tag

The Pre Tag macro wraps content in a pre tag with optional class and styles.

The pre tag is used to define preformatted text. This allows for the preservation of spaces and line breaks.

Usage

  1. Go to the form you wish to edit.

  2. Click Edit.

  3. Click Insert More Content, and select Other Macros.

  4. Select the Pre macro from the provided list.

    pre 01
  5. Complete the desired fields.

    Parameter Description Type Default Required

    ID

    Specify a unique id for the element.

    string

    none

    error

    Class

    The class to associate with the div. Multiple classes can be specified by separating them with spaces

    string

    none

    error

    Style

    An optional inline style sheet to apply to an individual div tag

    string

    none

    error

    Title

    Text to display in a tooltip

    string

    none

    error

    Text Direction

    Sets the text direction

    single select

    none

    error

    Language Code

    Sets the language code

    string

    none

    error

    At least one parameter must be specified.

    Although not strictly required to insert the macro on to a page, the macro does require one of the parameters above to be specified to function properly.

  6. The macro will then appear on the page.

    pre 02

Example

pre 03

Will result in:

Lorem ipsum
dolor sit amet, consectetuer adipiscing elit.
Aenean commodo ligula

eget dolor.