Pre Tag

The Pre Tag macro wraps content in a pre-tag with optional classes and styles. A pre-tag is used to define pre-formatted text to preserve formatting such as spacing and line breaks.

Instructions

  1. Navigate to the page you want to edit.
  2. Click  Edit.
  3. Click Insert More Content  Other Macros.
  4. Select the  Pre macro from the Macro Browser.
  5. Complete the desired fields.

    ParameterDescriptionTypeDefaultRequired

    ID

    Option to specify a unique ID for this element. If using this parameter to apply styling to the element, do not include the # selector.

    string

    none

    (error)

    Class

    Option to apply a custom CSS class to the element. Enter the CSS class name(s) to apply to the macro (case sensitive); multiple classes can be separated by a space or comma. Do not include the . selector in the class name. Classes must be part of your Global Confluence CSS or defined in a  CSS Stylesheet macro  that you have added to your page.

    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

    Enter a language code if you want to specify that the element content language is different from the default language of your page, e.g. de for German. Browsers will identify that the content is written in German. 

    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. Click Insert. The macro placeholder displays.

Example

Published Result

Lorem ipsum

dolor sit amet, consectetuer adipiscing elit.

Aenean commodo ligula


eget dolor.


If you are still stuck please contact our support team who can offer you more assistance. 
You can try our full range of content formatting macros for free by visiting the Marketplace.
On this page