...
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
Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
Edit a page or Create a new page and type /enhance click on the Enhanced Code Block option when it appears.
Click on the Edit pencil icon which appears below the newly inserted macro
...
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.
...
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.
...
...
Custom Title
Your code blocks can have custom titles displayed at the top which can be used to give some context to the code and are very useful when the macro uses Auto Collapse.
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.
...