Versions Compared

Key

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

...

  • Secure - All data and code is stored and processed on Atlassian servers so extra no additional security risk

  • Syntax highlighting for over 300 languages, including Gherkin

  • One button to copy the code

  • Multiple themes to choose from to suit the page style or use different themes for different languages

  • Line highlighting to shows which bits of code are important

  • Macro can be configured to start collapsed so it does not make the document too long

  • Customizable title for each macro so you can let people know what the code is

  • Focus lines so you by default the Macro only shows a subset of lines but can be expanded

  • Configurable line numbers so you can choose to show them only when they are useful

We don't have a way to export this macro.
Table of Contents
minLevel1
maxLevel2
outlinefalse
stylenone
typelist
printabletrue

Basic Usage

Edit a page or Create a new page and type /enhance click on the Enhanced Code Block option when it appears.

...

Options will appear to the right hand side, write or copy and paste your code into the “Code to display” field and select the language from the Language dropdown. See below for instructions on all options.

...

full.pngImage Added

Syntax Highlighting

Over 300 languages are supported, see the Supported Languages section for a full list.

To choose a language, simply click on the Language dropdown and either scroll to find your language or start typing and the list will be filtered so you can then easily select your language.

...

We don't have a way to export this macro.

...

customTitle.pngImage Added

Focus Lines

Focus Lines allow you to choose a subset of lines to be visible by default, but also allow viewers to expand to the full code snippet for more context using the + button. This is either a single line number or a range with start and end separated by a hyphen, e.g. 4 or 16-20.

...