Currently all training material can be found under:
Atlassian training material for Confluence Data Center can be found on the following page:
https://confluence.atlassian.com/doc/confluence-data-center-and-server-documentation-135922.html
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:
From the editor toolbar, choose Insert
> Other Macros.
- Choose Code Block from the Formatting category.
- Choose a language for syntax highlighting.
- Use the parameters below to customise how the code block should appear on your page.
- Choose Insert.
- 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