How do I render two-letter code blocks?
Asked by Julius.Simonelli:

I am writing code blocks and I have found that the text doesn't actually display when I have a code block with only two characters. So if I'm trying to write the characters ab, I can create a code block and any of the following will work: _ab, "ab", abc, but I cannot do just ab. How do I do this?


Answers:
author: Shannon S
body: Hello Julius,

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

We have experienced this issue in the past with the former editor, and it was reported as a bug:

* [CONFCLOUD-61941](https://jira.atlassian.com/browse/CONFCLOUD-61941) *Code Block macro not showing its content if it has only two chars*

As we are currently [rolling out a new editor](https://confluence.atlassian.com/confcloud/confluence-editing-improvements-945107733.html), the issue was closed. The new editor is not affected by this bug.

I'm testing it myself on both the old editor and new, and I can confirm the issue exists only on the older editor.

If you'd like to test this on the new editor yourself, you can create a new page using the new editor by clicking **+** and select **Try the new editing experience**.

If it does work for you, then you will want to use the new editing experience for any pages that will need the codeblock macro for sections of code that are 2 characters or smaller.

Note that the new editing experience will eventually be rolled out to your entire instance, but if you want to see if it's possible for the change to be applied now to your full instance, please contact our support team at [support.atlassian.com/contact](https://support.atlassian.com/contact) and they can help you with that.

I hope that helps! Do let me know if you have any questions or trouble with that.

Regards,

Shannon

comments: author: Julius.Simonelli
body: Hi Shannon,

Thanks for your response. Is it possible to switch to the new editor in an existing page, instead of starting a new page? That way links are not broken, likes are not lost, etc.

Thanks,

Julius


author: Shannon S
body: Julius,

Thank you for following up. It is not possible to switch an individual page to the new editor in Confluence Cloud. You'll need to recreate the page and copy and paste the content into the new page.

If you have trouble, you might want to try the [Source Editor for Confluence Cloud](https://marketplace.atlassian.com/apps/1215664/source-editor-for-confluence?hosting=cloud&tab=overview). This app will allow you to copy and paste the source code directly. I still experienced some formatting issues even after doing this, so you will want to modify the page to look better in the new editor after you do that.

Let me know if you have any trouble.

Regards,

Shannon


author: Julius.Simonelli
body: OK. I created a new page with the new editing experience and it seems to work. Thanks for all your help.


author: Shannon S
body: Julius,

Thank you for confirming that. Happy to help!

Take care, and have a pleasant rest of your week.

Regards,

Shannon


author: MS
body: This new editor, did that option make it to the self-hosted version of confluence we bought and installed early last month? Because I'm still seeing this problem.

\>If you'd like to test this on the new editor yourself, you can create a new page using the new editor by clicking **+** and select **Try the new editing experience**.

I can't readily find this option. Is this something I can install somehow?

ps. out of curiosity - how? 1 character works fine, 3+ characters show up, just not 2?


author: James Knight
body: This issue provides more information on the issue:

<https://jira.atlassian.com/browse/CONFCLOUD-61941>


Tags: cloud

confluence-cloud