The Adaptavist Group LogoDocumentation

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.

Add a Pre Tag to your page

  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.
    Parameter Description Type Default Required
    IDOption to specify a unique ID for this element. If using this parameter to apply styling to the element, do not include the # selector.stringnone
    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. stringnone
    StyleAn optional inline style sheet to apply to an individual div tagstringnone
    TitleText to display in a tooltipstringnone
    Text DirectionSets the text directionsingle selectnone
    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. stringnone

    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.

Search documentation

Start typing to search the docs.