Skip to end of banner
Go to start of banner

How to use Code Blocks

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Description

For code blocks, we generally follow Git flavored Markdown syntax and convert that to Confluence.

Fenced code blocks with a specific language will be converted to use the Confluence code macro with syntax highlighting specific to the lang indicated. The language indicated may not be enabled/found for Confluence, in which case, the code default will be used. 
Code blocks without a language will be rendered without modification (no code macro).

Links

Examples

```java
public void getValue() {
    return value;
}
```
public void getValue() {
    return value;
}
  • No labels