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

# Description

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

Fenced code blocks with a specific language are converted to use the Confluence code macro with syntax highlighting specific to the language indicated. This indicated language may not be enabled or found for Confluence, in which case, the code default is used.   
Code blocks without a language are rendered without modification (*No code* macro).

# Links

- [Creating and highlighting code blocks](https://help.github.com/articles/creating-and-highlighting-code-blocks/) - GitHub

# Examples

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

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