It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

New Code Snippet Only Has Language Setting? What about Collapse, title etc?

New pages editing defaults to the new editor format with "Publish" on the top, while pre-existing pages still open in the old editor with "Publish" at the bottom and the old formatting options.

The old editor's Code Block has options for setting Collapse and title properties etc, where in the new editor Code Snippet I only see the language option.

I need such blocks to collapse and have titles visible when collapsed.

How do I do this now?

4 answers

0 votes
DPK J Community Leader Feb 06, 2020

@Jeffrey_Saltzman  First of all welcome to the community!

You are correct about shortcoming of Code Macro in new editing experience for Confluence Cloud.

Many discussion related to this are in progress, summary of which is Atlassian want to make things simpler and is pushing new feature very carefully to new editor in Confluence, and on other side, power user like you and me are struggling.

I call it price of simplicity.

Now coming to solution, you can use various plugins available on Atlassian Marketplace for this. For example - https://marketplace.atlassian.com/apps/1214912/better-code-macro-for-confluence?hosting=cloud&tab=overview

This simply is garbage.  A perfectly usable feature is no longer usable.  Colapsable code snippets work, ones that to not collapse make documentation with code examplaes unreadable.

More of Atalssian having too much time on their hands and breaking perfectly good functionality.

We're not interested in exploring (or purchasing) community fixes to your breaks.

Like Dmitri Seron likes this

I see they mean for us to use an "Expand" block in place of the old Code Block.

There are differences, but it is what it is.

Well, the expand block doesn't display code the way it needs to be - so I now wrap a code snippet with an expand block.

More clicks more time more space in the page.  

As Einstein said, "Everything should be made as simple as possible, but no simpler."

This stepped off the cliff.

It sucks not to have other options in Code Snippet

Not having collapse in the code macro is a huge limitation for software development companies using confluence.   They should keep the old macro in parallel with the new one if the new one is missing critical functionality.

Interestingly, you seem to be able to put a code block inside an expand block.  This seems to work for small code snipits, but for anything longer (e.g. 3 pages), it hangs the page, and you have to close the tab.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

5,345 views 4 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you