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
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:
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.
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?
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.
Atlassian remove existing functionality as part of upgrade. Users request to fix, results in a feature "suggestion". 2 years later they are still considering it.
Fireman lights a house on fire. The occupant calls to the fireman for help. Fireman commences thinking about what should happen next...
In case it isn't clear, we are the occupants of the house that is on fire. Atlassian, are you even listening any more?
This is clearly a bug. Any significant technical design requires large code blocks but without the collapse feature, the document becomes TL;DR - this is a bad dog moment for atlassian :-(
I discovered if one has an older document that used the older code block macro, it is possible to copy that document and with it will be capability to include the older code block macro with the collapse feature.
Thank you for your reply. I looked into the request, and as of April, there's an updated version of this request. This includes the requirement for collapsible code blocks.
You can follow that here:
Thank you again for your feedback, and take care.
Hello Community! Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...
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