Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Making the code block collapsible in the v2 editor

Is there a way to make the code block collapsible in the v2 editor? i can't find an option for it, and it needs to be collapsible, since the json im putting in there is 6000 lines long

7 answers

1 accepted

1 vote
Answer accepted

Hello Mat,

Thank you for bringing this up. It's not yet possible while we roll about the new editor, but we have a feature request below that would include that:

  • CONFCLOUD-66437 Allow further customization of the "Code" macro in the new editor

Please vote on the feature request and you will be automatically added to the list of watchers.

As a workaround, you might want to attach the code in a text file with a preview snippet using the code block macro.

Let me know if you have any further questions about that.

Regards,

Shannon

@Shannon Spaniol Hi there -- it looks like I can no longer insert the Code block macro in confluence pages....and thus cannot make collapsible...is this true?

Hi Colin,

Welcome to Atlassian Community! It's nice to meet you.

The Code macro has replaced the original Code Block macro. The Code Block Macro was the one that has the ability to collapse, the Code macro does not.

The feature request I shared with Mat earlier would hopefully include a collapsible option for the new Code macro.

Can you confirm that you're able to insert the Code macro using the slash / command in the new editor?

Regards,

Shannon

This should not be classified as feature suggestion, it should be a bug because it is very frustrating to use the editor v2 when it lacks in such a trivial functionality like collapsibility and this was preset in v1.

Like # people like this

Hi Alexandra,

Thank you for following-up on this thread. I agree that the Code macro is definitely lacking in comparison to the Code Block macro.

However, the Code macro is a different macro entirely, thus the feature request for the missing capabilities that were offered in the former Code Block macro. 

There are multiple other missing features in the new version of the editor, so if you encounter anything else you find that is sorely lacking, you can compare with our Confluence Cloud Editor Roadmap to see if it's a feature we plan to include in the future.

Take care,

Shannon

Like Alexandra Mihaltan likes this

As a workaround for a shitty new editor, I've put a code block inside an "Expand" element.

Like # people like this
They still have code blocks in the comments though!

But they don't expand...

Like # people like this
Like # people like this

Doesn't even let me to put the code snippet inside the expand block :facepalm:

@Darina Voloshyna may I ask if you managed to solve this issue? As I have faced the same now :( cannot add  code  inside  expand block

It is working only if it is not inside the table or other element. Just the expand block in a root of the document, and code block inside of it. But doing so inside the table won’t work :(

Thanks for prompt response @Darina Voloshyna !

P.S.: that's a pity to hear though (((

Not being able to remove line numbers makes my table of functions look horrible

Like Jose Rodriguez likes this

Just adding my voice... collapsible code blocks were really useful... kept a page legible... people see a huge long page.. they dont read... if they dont read they give up and dont learn.

Needs to go in.. seriously needs to go in 

 

)

Checking in August; any updates on this yet?

2 votes

Checking in October 2020, any updates on this yet?

The question is:

  • how do we make a code block collapsible in the new editor?

Update? No Atlassian doesn't appear to care. The only solution I am aware of is to put a code macro inside an expand macro.

Like # people like this

And why was this "Solved"? They still haven't fixed anything.

Like # people like this

Why Atlassian take it away?  That's stoopid.

Like # people like this

It is bad to remove a good feature when upgrading something

This is a very good feature to have it removed

Suggest an answer

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

What do you think is the most *delightful* Confluence feature? Comment for a prize!

- Create your own custom emoji 🔥 - "Shake for Feedback" on mobile 📱 - An endless supply of GIFs via GIPHY 🤩 Is there anything quite as nice as a pleasant surprise? Comment below with what...

402 views 23 8
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