# noformat macro in Confluence storage format

URL: https://goingstellar.ro/reference/confluence-storage-format/noformat/

The noformat macro shows plain text in a monospace block with no formatting applied inside it. Its single parameter, nopanel, removes the surrounding box. In the Cloud editor it is converted to a code snippet, and nopanel is not carried over.

## Storage format

```xml
<ac:structured-macro ac:name="noformat"><ac:plain-text-body><![CDATA[preformatted *no* formatting]]></ac:plain-text-body></ac:structured-macro>
<ac:structured-macro ac:name="noformat"><ac:parameter ac:name="nopanel">true</ac:parameter><ac:plain-text-body><![CDATA[no panel]]></ac:plain-text-body></ac:structured-macro>
```

## In the editor

- Use the native /Code snippet element. Per the Atlassian documentation. The macro page says new instances of the Noformat macro cannot be inserted in the Cloud editor.

## As ADF (Confluence Cloud)

The ADF that Confluence Cloud builds for:

```xml
<ac:structured-macro ac:name="noformat"><ac:plain-text-body><![CDATA[preformatted *no* formatting]]></ac:plain-text-body></ac:structured-macro>
```

```json
{
 "type": "doc",
 "content": [
  {
   "type": "codeBlock",
   "content": [
    {
     "text": "preformatted *no* formatting",
     "type": "text"
    }
   ]
  }
 ],
 "version": 1
}
```

## Examples

Storage format sent:

```xml
<ac:structured-macro ac:name="noformat"><ac:plain-text-body><![CDATA[preformatted *no* formatting]]></ac:plain-text-body></ac:structured-macro>
```

Show text where asterisks and other wiki characters must stay literal. The stored page draws a bordered box.

Rendered view (HTML):

```html
<div class="preformatted panel conf-macro output-block" data-hasbody="true" data-macro-id="<id>" data-macro-name="noformat" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>preformatted *no* formatting</pre>
</div></div>
```

Storage format after the round trip through ADF:

```xml
<ac:structured-macro ac:name="code" ac:schema-version="1" ac:macro-id="<id>"><ac:plain-text-body><![CDATA[preformatted *no* formatting]]></ac:plain-text-body></ac:structured-macro>
```

Sent to Confluence Cloud on 29 Nov 2026.

Storage format sent:

```xml
<ac:structured-macro ac:name="noformat"><ac:parameter ac:name="nopanel">true</ac:parameter><ac:plain-text-body><![CDATA[no panel]]></ac:plain-text-body></ac:structured-macro>
```

Show a bare URL or command with no box around it, using nopanel.

Rendered view (HTML):

```html
<pre class="conf-macro output-block" data-hasbody="true" data-macro-id="<id>" data-macro-name="noformat">no panel</pre>
```

Storage format after the round trip through ADF:

```xml
<ac:structured-macro ac:name="code" ac:schema-version="1" ac:macro-id="<id>"><ac:plain-text-body><![CDATA[no panel]]></ac:plain-text-body></ac:structured-macro>
```

Sent to Confluence Cloud on 29 Nov 2026.

Storage format sent:

```xml
ADF:{"content": [{"attrs": {}, "content": [{"text": "no lang", "type": "text"}], "type": "codeBlock"}], "type": "doc", "version": 1}
```

Write an ADF codeBlock without a language back to storage. This is the shape a noformat block takes after conversion.

Rendered view (HTML):

```html
<div class="code panel pdl conf-macro output-block" data-hasbody="true" data-macro-id="<id>" data-macro-name="code" style="border-width: 1px;"><div class="codeContent panelContent pdl">
<pre class="syntaxhighlighter-pre" data-syntaxhighlighter-params="brush: java; gutter: false; theme: Confluence" data-theme="Confluence">no lang</pre>
</div></div>
```

Storage format after the round trip through ADF:

```xml
<ac:structured-macro ac:name="code" ac:schema-version="1" ac:macro-id="<id>"><ac:plain-text-body><![CDATA[no lang]]></ac:plain-text-body></ac:structured-macro>
```

Sent to Confluence Cloud on 29 Nov 2026.

## What changes in conversion

- noformat becomes an ADF codeBlock with no language, and comes back as a code macro. The macro name is gone from the page.
- The code macro that replaces it is highlighted with the Java brush and drawn in a panel, so the block is no longer plain.
- nopanel is not carried into ADF. A block that had no box returns with the box.

## Where the documentation differs

Sent to Confluence Cloud, 29 Nov 2026:

```xml
<ac:structured-macro ac:name="noformat"><ac:parameter ac:name="nopanel">true</ac:parameter><ac:plain-text-body><![CDATA[no panel]]></ac:plain-text-body></ac:structured-macro>
```

The documentation: The macros page lists Noformat among those that migrate "without any loss of data" and says they "automatically become native Code snippet elements". The Noformat macro page describes nopanel as "Removes the panel around the content".

The actual result: After the round trip the stored result is <ac:structured-macro ac:name="code" ac:schema-version="1" ac:macro-id="<id>"><ac:plain-text-body><![CDATA[no panel]]></ac:plain-text-body></ac:structured-macro>. The nopanel parameter is gone. The rendered block went from a bare pre element to a code panel with brush: java.

## Pitfalls

- Put the text in a CDATA section inside ac:plain-text-body, as the tested blocks do.
- Do not expect a no-box block to stay box-free once the page is saved from the Cloud editor.
- A converted block is syntax highlighted as Java. Text that looks like code in another language can show odd colours.

## Questions and answers

### What parameters does noformat have?

Only nopanel, which defaults to false.

### Is the text still literal after conversion?

Yes. The asterisks in the tested text came back unchanged as code content.

## Related

- [code macro](https://goingstellar.ro/reference/confluence-storage-format/code-macro/)
- [code macro languages](https://goingstellar.ro/reference/confluence-storage-format/code-languages/)
- [panel macro](https://goingstellar.ro/reference/confluence-storage-format/panel-macro/)
- [info, note, tip and warning macros](https://goingstellar.ro/reference/confluence-storage-format/info-note-tip-warning/)

## Sources

- [Insert the noformat macro (Atlassian Support)](https://support.atlassian.com/confluence-cloud/docs/insert-the-noformat-macro/)
- [Macros that are unavailable or have limited availability in the Cloud editor (Atlassian Support)](https://support.atlassian.com/confluence-cloud/docs/learn-which-macros-are-being-removed/)
- [Atlassian Document Format: document structure (Atlassian Developer)](https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/)

