The Adaptavist Group LogoDocumentation

Highlight

The Highlight macro changes the background color of a section of content. It looks like this. This is useful for small amounts of content such as a word, heading, or single sentence. To highlight larger blocks of text, use the Background Color macro. You can combine it with the CSS Style Macro, to further customise the content it contains.

Add a Highlight macro to your page

  1. Navigate to the page you want to edit.
  2. Click Edit.
  3. Select the text you want to highlight, or click the position where you want to add highlighted text.
  4. Click Insert More Content → Other Macros .
  5. Select the Highlight macro from the Macro Browser.
  6. Define the color to apply. If you have selected text in step 3, it is displayed in the preview panel of the macro editor.
    ParameterDescriptionTypeDefaultRequired
    ColorSpecify the color to be used. This can be either a common color name (supported by most browsers) or a hexadecimal color code (supported by all browsers).There are several special pastel colors: yellow (default), red, blue, cyan, green and purple.stringyellow
    CSS Class Use in combination with Global Confluence CSS or a CSS Stylesheet macro that you have added to your page. 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. stringnone
  7. Click Insert. The macro placeholder displays. If you haven't already selected the text to highlight, enter the required content.
  8. Save the page to render the highlighted text.

Style Examples

There are several built-in pastel colors ideal for use as backgrounds which can be set as follows:

Hexadecimal color code

To ensure a precise color is applied, use a hexadecimal color code.

Tip: Try to keep a contrast between the text and the background, so that it is still clearly readable.

Search documentation

Start typing to search the docs.