Advanced Codeblocks Single

Learn about the special features of the Advanced Codeblocks Single and get inspiration from specific examples.

The Advanced Codeblocks Single is used for inserting a single codeblock in Confluence.

Parameters

Title

Define the title of your codebox.

Code

Paste your code-snippet to be rendered.

Show Download links

Decide to show download links or to hide this function.

Theme

Select your theme from 4 themes.

Programming language

Select your language from over 150 programming languages or let your language detect automatically.

User Interface

The user interface on your Confluence page will look like the example below. You can click on the three dots do show a context menu. You can choose to download the code snippet or get help.

Download Feature

The Download Feature lets you download your code snippet as file. Don't forget to enable Show download links in your parameters to use this function.

  • Download raw: download the raw code of your code snippet. The link is located in the menu in the upper right corner of the outer box.

Note for using the Download Feature

The Download link only works in the browser (javascript). You can not copy a download link to be used by an external tool.

Examples

Example 1

Example 1 - Apache
import React from 'react'

const MyComp = () => <div>foo</div>