Developer
News and Updates
Get Support
Sign in
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Last updated Sep 1, 2026

ADF mark: code

Mark

Usage

Description

The code mark sets monospaced styling.

Example

Java

1
2
3
4
5
6
    p(
        text("Hello "),
        text("world").code(),
        text("!")
    )

ADF

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
    "type": "paragraph",
    "content": [
        {
            "type": "text",
            "text": "Hello "
        },
        {
            "type": "text",
            "text": "world",
            "marks": [
                {
                    "type": "code"
                }
            ]
        },
        {
            "type": "text",
            "text": "!"
        }
    ]
}

Result

Hello world!

Compatibility

Products

ConfluenceJira

Nodes

Marks

FormattedTextMark (except where noted)

Structure

  • type - code

Rate this page: