Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Unable to put Code Block to Expand Macro



I'm using Expand Macro, then I want to put Code snippet inside, but the code block is jump out of Expand. Is there any way to let the Code within Expand. Thank you


You have to create expand macro. Then add code block inside expand block. Cannot create simultaneously.

Thanks for replying me. But I still do not get your points. I tried with these steps:

- Choose "Expand" from "Insert" dropdown

- Input title and body for Expand

- Publish

- Edit page

- Open Expand above and add code block (by Insert -> Code snippet)

->I see Code Block jumps out of Expand.

Please help me. Many thanks

Like Alexandra Pavlyshina likes this

So please clarify what you are trying to accomplish with the code block. The code block is a display box not an executable box.

I'm having the same issue.  What I want to accomplish it to have a well formatted code section (in this particular case, a SQL query) as part of a document for others to read/review.  I want the code section inside of the expand macro so users do not have to constantly scroll past the query to get to later parts of the document.  It makes the page look neater.


Log in or Sign up to comment

Atlassian Community Events