---
title: "How to use Code Blocks"
canonical: "https://support.appfire.com/space/SUPPORT/89136761/How%20to%20use%20Code%20Blocks"
format: markdown
---
# 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

- [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;
}
```