How can I use curly braces without creating a macro?

Mark Allison
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 11, 2017

I want to use curly braces in some text on a page in confluence, but I can't work out how to stop it automatically creating a macro. I tried double curly braces which created a code block, and also tried backslash and forward slash.

5 answers

1 accepted

1 vote
Answer accepted
Stephen Deutsch
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 11, 2017

Hi Mark,

You have two options

  1. Copy and paste the curly braces (especially if you are going to put an ending closing brace)
  2. After entering the curly brace and the macro menu pops up, press the ESC key and the menu will go away leaving the curly brace there. However, if you put in a closing brace it will still try to convert it to a wiki markup macro, so copy/paste will be your best bet in that case.
Matthew Gately
Contributor
October 16, 2018

Note that simply copying and pasting the entire text including both braces automatically inserts a Wiki markup block

3 votes
cybersam
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 13, 2018

Here is a nice alternative to Stephen Deutsch's answer # 2:

You first enter whatever goes between the curly braces AND the right curly brace -- this causes no problems.

Then, you insert the left curly brace, which does pop up the dialog -- but you can just ESC out of that.

MJD
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 1, 2019

This is absurd. "Preformatted" mode should take precedence and not trigger inserts. Confluence is so difficult to write code in. Atlassian, why do you hate us?

Like # people like this
Emma Rush _T_D_
Contributor
July 17, 2020

Have you tried the code block macro? Just add your code in there and nothing gets triggered.

Michael Stangeland
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 29, 2021

If you can tolerate the macro while you type, just keep going.  After putting the right brace and the macro is complete, hit undo (ctrl-Z) twice.

 

If you can't tolerate the macro, hit ESC.  The macro will still come back to life with the right brace though, but undo (ctrl-z) twice will put it back to normal text.

 

Like # people like this
0 votes
Andrew Greenwood
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 3, 2024

Landed here looking for the same answer (I think).

When editing a post in Confluence (with markup) I had a requirement to add some documentation which included text similar to this:  ${this.is.some.parameter}

When I saved the document, I got the "Unknown plugin" being displayed.  To stop this I escaped the curly braces.  $\{this.is.some.parameter\}

This worked fine for me.

I realise this is an old question, but just incase anyone lands here looking for what I was, this might be for you ;)

0 votes
Josh Turnbull
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 27, 2023

This can be controlled by going into your settings (user icon in top right > settings) and under Your settings > Editor, select Disable Autoformatting.

This does prevent all rich text autoformatting rather than just curly braces.

0 votes
alexpeterpen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 19, 2020

My solution is to add two brackets like {{ and }} and then remove the second one.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events