How to use code blocks

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

Examples

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


Find answers from the community.

Ask a question to the community.

Log a request with our support team.

Confluence®, Jira®, Atlassian Bamboo®, Bitbucket®, Fisheye®, and Atlassian Crucible® are registered trademarks of Atlassian®
Copyright © 2005 - 2024 Appfire | All rights reserved. Appfire™, the 'Apps for makers™' slogan and Bob Swift Atlassian Apps™ are all trademarks of Appfire Technologies, LLC.