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.

Instructions

  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 ContentOther 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
    Color

    Specify 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(tick)
    CSS ClassUse 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(error)

  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.

Published Result
This is the
yellow highlight option.


Style Examples

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

Color parameter set to red, yellow, green, cyan, blue, purple,  orange,  and violet.

Hexadecimal color code

To ensure a precise color is applied, use a hexadecimal color code.   This is #66FF66.

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


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