Include from GitHub to Confluence
Breadcrumbs

Include gist

You can include Gists from a GitHub workspace in your Confluence page.


Add the macro

You can either:

  • type directly / Include GitHub Gist and ENTER to add and edit the macro, or

  • click in the editor toolbar on Insert > Other Macros and select the Include GitHub Gist macro (located in the category “External Content” of the macro library).

Screenshot 2023-10-23 at 16.11.14.png
Add GitHub Gist Macro


You will then be prompted to specify the following:

URL

URL of the Gist from GitHub

Syntax highlighting

Format/ language for highlighting purposes (auto detect is performed by default)

Show line number

Tick to display number of lines in the file

Hide file header

Tick to hide header of files rendered

Collapsible

Collapses the file content and gives the option to expand and collapse

Screenshot 2023-10-23 at 15.00.00.png
Include GitHub Gist in Confluence