Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

What happened to 'code block' in new page editor

Started a new page and was told I need to use the new format. I am doing so but now wasting a lot of time trying to find where 'code block' went. Does anyone know how to insert a code block in new page editor system?

Thanks. 

3 answers

In the editor toolbar, you should see a Plus symbol with a down arrow. The "Code snippet" option is there. Alternatively, in the editor, start typing forward slash "/" and then "code" and it will show inline.

 

image.png

Thanks for your quick response, and I did try to use Code Snipit but it is so much inferior to Code Block it is not even a consideration!   You must have at the very least these missing features restored before considering using it:

1) Collapsible container

2) Header / Title

3) Free formatting text without line numbers

Like # people like this

There's a lot of functionality regressions in the new editor. Hopefully they have a plan to deal with these but based on their responses to other issues on JIRA, they don't really listen to user feedback. Here's the relevant JIRA issue:

https://jira.atlassian.com/browse/CONFCLOUD-66437

Like # people like this

"They don't really listen to user feedback"

Understatement of the year.

Like Casey Meijer likes this
0 votes
Jason H Atlassian Team Jan 28, 2020

You can also create a code block using three back ticks:

```

Thanks Jason, but per Alan's concerns, the three back ticks creates a "Code snippet" and not the old "Code block" that allowed customisation.

EDIT: Maybe you can shed some light on what it takes to get features into the new Confluence editor? The JIRA ticket says "Gathering interest", but otherwise people just have no idea what is happening behind the scenes in the Atlassian development team.

https://jira.atlassian.com/browse/CONFCLOUD-66437

Like Shawn Connelly likes this
Jason H Atlassian Team Jan 28, 2020

Ah, I see.

Hi Ben,

Get the free, better code macro. It works with the new editor and is significantly better than the regressed code snippit nonsense.

new editor - code block.png

Is anything actually superior with the new editor? Is Atlassian punking us?

Like # people like this

Thanks Shawn, looks good.

Great to know this is available @Shawn Connelly !

I just tried on a new page and the "Better Code Block" does not show up! How is it enabled?

Hi @Shawn Connelly , can you share how can we enabled the "Better Code Block" option? I can't see the option when creating a new page.

Continuing on this theme of 'code block' going away, I am now worried about the hundreds of  pages I have that use 'code block.'  Once this feature is no longer supported, will I still be able to edit those pages and their 'code blocks' in the future?

@alan.gordon ,

When the "old" editor goes away, the current Code Block macro will convert to the new Code Snippet.

From the Atlassian page Confluence Cloud Editor Roadmap  :

This macro was removed from the new editor and replaced with the Code Snippet command (type /code). Conversion removes the Code Block macro, moves the text into a Code snippet, and allows you to choose the appropriate language.

Darryl

Remove the old code block macro is the worst decision ever. The recent code block macro is useless. If you compare the theme formatting, the old one is obviously better than the new one.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence Cloud

Confluence Bingo Round 3!

That’s right! Grandma’s back at it again, and this time she’s brought all her friends. In honor of Team '21, this Bingo round is dedicated to all things team-related, and the prizes are no exception....

2,910 views 31 22
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