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
4,300,651
Community Members
 
Community Events
165
Community Groups

I cannot find code block in confluence macro

code snipet no code block.PNG

I cannot find the code block macro in the list, only the code snippet appear.

When I type {} as advised by the help center, nothing happen.

The help center document I found is here: https://support.atlassian.com/confluence-cloud/docs/insert-the-code-block-macro/, but it seems out of dated

1 answer

3 votes
Hana Kučerová Community Leader Aug 08, 2021

Hi @Tham Giang Triet ,

welcome to the Atlassian Community!

In the documentation there's info:

This macro was intentionally excluded from the new editor and replaced with the Code Snippet element.

This is what I think is happening in your case too - you need to use Code snippet.

I am sorry, Hana, but no.

No, I do not "need" to use the Code Snippet; I need to be able to start line numbers at something else than 1 (or not showing them).

In essence, what I *need* is the former Code Macro, that has now, intentionally(!), been removed.

What I *have* to do, however, is write a bitter comment on the page in question, that Atlassian has removed the functionality that I need, and that I must now ask the readers of said page to do some mental gymnastics that are at odds with what is actually shown to them.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

378 views 2 11
Read article

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