Code Block Macro is no longer in my list to insert?
Asked by Maureen Yearwood:

We recently moved to the cloud version of confluence and I no longer have the code block macro in my list of macros to add? Please help.


Answers:
author: Shannon S
body: Hello Maureen,

Thank you for contacting us! [In the new editor](https://confluence.atlassian.com/confcloud/confluence-editing-improvements-945107733.html#ConfluenceEditingImprovements-Codeformatting), if you type /code you should be able to find it:

![Screenshot 2019-06-17 at 13.42.25.png](https://community.atlassian.com/t5/image/serverpage/image-id/57753i1B0A217209D40C8B/image-dimensions/429x193?v=v2 "Screenshot 2019-06-17 at 13.42.25.png")

If you're still on the old editor, then {code should still work, and you'll find it under **Code Block Macro**.

Can you give that a try and let me know how it goes?

Regards,

Shannon

comments: author: Maureen Yearwood
body: Shannon,

<br />

Thanks for that info. However now the concern is I don't have access to format like I did in the old editor? I can't make it collapsible or choose the background like in the old editor.

Right now I'm copying pages created in the old editor and changing the information as needed but at least it gives me the old code block macro.

Is there a way to choose when adding a page whether to use the new or old editor?


author: JP
body: I agree Maureen, Code snippet seems to have much less functionality than the old Code Block Macro.

Why is this Atlassian? How do I get the old Code Block functionality where I could add a title, turn numbering on and off, make it collapsible etc?


author: Shannon S
body: [@Maureen Yearwood](/t5/user/viewprofilepage/user-id/3336979), [@JP](/t5/user/viewprofilepage/user-id/1462277),

The macro is being rewritten for the new editor, and so this would explain the missing functionality.

My colleague raised a feature request to include that customization that was once possible:

* [CONFCLOUD-66437](https://jira.atlassian.com/browse/CONFCLOUD-66437) *Allow further customization of the "Code" macro in the new editor*

I would recommend that you both vote on the feature request and comment with the features you want to see the most. As always, you can join in on the public discussion about [the new editor](https://community.atlassian.com/t5/Confluence-discussions/Try-out-the-new-editing-experience/td-p/1000813), where you can even speak to the Product Manager regarding this.

Let me know if you have any trouble.

Regards,

Shannon


author: Maureen Yearwood
body: Thanks I just voted and commented.


author: JP
body: [@Shannon S](/t5/user/viewprofilepage/user-id/510046)

Thanks Shannon but it is very frustrating to have to vote to get back functionality that we had and you took away. Setting this up as "vote for a feature you'd like so it might get done" completely belies the fact that this used to work and Atlassian broke it.


author: Shannon S
body: [@Maureen Yearwood](/t5/user/viewprofilepage/user-id/3336979) Thank you for your vote!

[@JP](/t5/user/viewprofilepage/user-id/1462277), To clarify, the vote is to show which features you value the most. Since the new editor is brand-new, it contains a lot of new macros that we wrote especially for that editor. By voting, it helps us to prioritize our efforts by working on the features that are most important to you and the rest of our customers, and providing less focus on the ones that aren't in demand.

I understand how it might come across, but the votes and feedback are really valuable to our product team, and it helps to improve our products.

Thank you, and have a pleasant week.

Regards,

Shannon


author: Peter Dorn
body: [@Shannon S](/t5/user/viewprofilepage/user-id/510046)

Your answer is not helpful. You took away an existing feature that I used extensively. I recently migrated from my own server to cloud and find this degradation of functionality highly unusual and your explanation outright deceptive. You should at least acknowledge that the functionality is degraded.

If you can't acknowledge such a simple fact, then my trust in Atlassian is degrading and my ability to promote Atlassian products in my group is undermined.


author: Vivek KC
body: Happened to realise today the feature is missing after moving to new editors! Indeed, it's frustrating and found this page on searching what happened with the feature. I'm trying hard to accommodate my documentation needed for a presentation, without that my page looks poorly! Damn, this is unprofessional way to do the business. Don't ship partial products and screw up end user experience, what was the urgency?


author: caspar_lourens
body: Indeed, quite strange and frustrating these kind of decisions are made. Would be much better if some kind of user-base would be consulted before changing such basic stuff as the Code Block... Maybe also check your statistics on the usage of certain features so it's easier to get an estimation on the impact a change has or will have !

Very annoying to now have to "vote" for getting an older feature back in Confluence :-(


author: Joao Morais
body: Same here. The new editor is proposing some new macros and functionalities, but basic legacy macros should work as before. The "code snippet" is so ugly. The code block that is used by so many users on many pages should not have been replaced with something with lesser rendering capabilities and almost no functionalities at all.


author: SimonP
body: Can we go back to the old editor until this is resolved? For lots of code this makes it hard to navigate or read. Powershell is grey on grey..


Tags: cloud

confluence-cloud