Documentation for Confluence 5.4.
Documentation for Confluence OnDemand and earlier versions of Confluence is available too.

Skip to end of metadata
Go to start of metadata

The Noformat macro displays a block of text in monospace font with no other formatting.

Using the Noformat Macro

To add the Noformat macro to a page:

  1. In the Confluence editor, choose Insert > Other Macros.
  2. Find and select the required macro.

Speeding up macro entry with autocomplete: Type { and the beginning of the macro name, to see a list of suggested macros. Details are in Using Autocomplete.

To edit an existing macro: Click the macro placeholder and choose Edit. A macro dialog window will open, where you can edit the parameters of the macro.

Enter the content that is to be unformatted into the body of the macro placeholder.

Parameters

Parameters are options that you can set to control the content or format of the macro output. Where the parameter name used in Confluence storage format or wikimarkup is different to the label used in the macro browser, it will be listed below in brackets (example).

Parameter

Default

Description

No Panel
(nopanel

False

Removes the panel around the content.

Code examples

The following examples are provided for advanced users who want to inspect or edit the underlying markup for a Confluence page. 

Macro name: noformat

Macro body: Accepts plain text.

Storage format example

Wiki markup example

 

 

  • No labels

13 Comments

  1. Note: The second example is incorrect in the "What you need to type" column. It should be:

    {noformat:nopanel=true}
    I do not want this text formatted!
    {noformat:nopanel=true}

    1. Nope, it should be:

      {noformat:nopanel=true}
      I do not want this text formatted!
      {noformat}

      1. Sorry about that. I've just fixed up the docs, with the correct syntax.

  2. IP

    this has frustrated me a lot, I have used other Wikies, but with Confluence, just entering an inline CamelCase word in mono-spaced font seems impossible without Confluence having to interpret this as a WikiWord. All I want to do is write a name of a Java class, and not create a new page. Can someone help?

    Thanks in advance.

    1. CamelCase is an option under Administration->General configuration/ I always turn it off.

  3. Anonymous

    Is there any way I could create a user macro based on this that would have the monospace and formatting preserved, but could still recognize other macros or links etc. So for example:

     
    \{noformat}
    I want this text      formatted
           like this {user-macro} and use this macro {user-macro}
    and this [link|some page].
    \{noformat}
    
    1. Hi there,

      You might be interested to try the Panel macro which allows macro/wiki markup rendering within the "block" and hence allow using the monospace markup too.
      If you are keen to create your own User Macro or Macro, feel free to refer to the link included for more information regarding the modules respectively.

      Cheers,
      Tony

  4. Hi All,

    I find that if I use the noformat macro inside columns, that unless I manually break up paragraphs, that my noformat will break the columns.

    This has only started to happen recently. Is this a known issue? It would be nice if the nonformatted text-box still followed the formatting of the rest of the page, even if the code inside doesn't.

    Cheers,

    Dan.

    1. Hi Dan,

      Could you please raise a support ticket at https://support.atlassian.com with a sample wiki markup used for this issue. So that we can further investigate to this issue. Thanks.

      Regards,
      MG

  5. Anonymous

    Hi all,

    May I use the following code to display white characters on a black screen, looks like it's not working......

    Thanks in advance.

    Jeff

    1. Hi Jeff,

      I am afraid the color macro will not affect the text in the noformat macro.
      I have a mere suggestion. You can try to create a User macro with style script in it. I have create an example:

      1. Create a User macro via Confluence admin >> User Macros
      2. Enter the following:
      3. Save the changes
      4. Now apply the following code to a page:

      Hope that helps.
      Best rgds
      Zed

      1. Hi Zed,

        i was looking for the same (black box, white text und no formating). I use it to display text that looks like a dos prompt or a console.

        So I tried out your suggestion which works very well. I find out that the text within every noformat-macro turns to white. Which means that I cannot combine black-on-white and white-on-black. 

        That is not a big problem if only noformat-macros are affected. I tested panel-macro and info-macro which are not affected by the style-command. Can you give me some background informations about the impacts of using the TestColor-macro?

        Thanks in advance

        Peter

  6. Is it no longer possible to specify "borderStyle", "title", or other options to the noformat macro in Confluence 4 as it was in previous versions?! I also just here tried to make borderStyle and title words preformatted using the brackets ({{ and }}), which again does not appear possible. It seems to be either the entire paragraph formatted, or nothing.