---
title: "How to use code blocks in the macros"
canonical: "https://support.appfire.com/space/MARKDOWN/72384523/How%20to%20use%20code%20blocks%20in%20the%20macros"
format: markdown
---
> Macro (aura-html)

## <span style="color: #000000">Description</span>

<span style="color: #000000">The </span>*<span style="color: #000000">Markdown for Confluence</span>*<span style="color: #000000"> app follows Git flavored Markdown syntax f</span><span style="color: #000000">or code blocks </span><span style="color: #000000">and converts that to Confluence. </span><span style="color: #000000">Fenced code blocks with a specific language, are converted to use the Confluence </span>*<span style="color: #000000">code</span>*<span style="color: #000000"> macro with syntax highlighting (specific to the language indicated). </span>

<span style="color: #000000">The language indicated may not be enabled or found for Confluence, in which case, the code default is used. </span><span style="color: #000000">Code blocks, without a language, are rendered without modification (the </span>*<span style="color: #000000">code</span>*<span style="color: #000000"> macro is not used).</span>

## <span style="color: #000000">Examples</span>

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

```
public void getValue() {
    return value;
}
```

## <span style="color: #000000">Links</span>

- [Creating and highlighting code blocks](https://help.github.com/articles/creating-and-highlighting-code-blocks/) <span style="color: #000000">- GitHub</span>