Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This Confluence training material offers clear guidance on creating, organizing, and sharing content effectively.

Explore the following pages for detailed instructions, tips, and best practices.

Children Display

Currently all training material can be found under: 

Children Display

...

Code Block Macro

Add a Code Block macro to your page to display code examples with syntax highlighting. 

This is great for sharing code snippets such as:

  • sample code
  • terminal commands
  • excerpts from application logs.

Add the Code Block macro to your page

To add the Code Block macro to a page:

  1. From the editor toolbar, choose Insert Image Removed > Other Macros.

  2. Choose Code Block from the Formatting category.
  3. Choose a language for syntax highlighting.
  4. Use the parameters below to customise how the code block should appear on your page. 
  5. Choose Insert
  6. Type or paste your code into the macro placeholder. 

You can then publish your page to see the macro in action. 

More information can be found on the following Atlassian page; Code Block Macro