As any app for Confluence Cloud, you can install the app via the Confluence admin menu.
Log into your Confluence instance as an admin.
Click on “Apps > Manage apps” in the header menu.
Click on “Find new apps” on the right navigation.
Search for “Prism Syntax Highlighter for Confluence” and select it.
Click on “Try it free” to install the app.
Prism Syntax Highlighter for Confluence provides two macro to highlight source code on any confluence page. One macro can be used to define the source code in the macro’s body in Confluence and the other macro includes the source code from a remote location (such as GitHub). To make use of the first option click the “Insert” / “+” Button in the edit mode and select the “Prism Syntax Highlighter” macro and add the source code as macro body. To include source code from a remote location add the “Prism Syntax Highlighter (Remote)” macro and set the macro option “URL” to the remote location.
The macros support the following options:
Language: Select the language of the source code to highlight.
Height: Optionally define the macro’s height.
Line numbers: Check to add line numbers.
Lines(s) to highlight: Add the lines that should be highlighted in format “1-2,5,9-20”.
Download filename: Add a filename to allow downloading the source code.
Prism Syntax Highlighter for Confluence supports the following languages: