I want to document actions in a ssh terminal. I want to show what commands to type, what the response is, and maybe highlight some important information.
In the legacy editor, this was possible with using code blocks. Unfortunately, the new editor does not allow any styling of code blocks and the background color isn't very terminal-ish.
So to be precise:
I got halfway by using a Custom Panel, coloring it gray and removing the icon, but it feels very sad compared to what I could do with the legacy editor.
Hi Hans,
Unfortunately, the new editor’s code block styling is quite limited compared to the legacy one. There are a few workarounds you can try:
1. Use the Code macro (Cloud):
Type /code → choose Code snippet → pick a dark theme (e.g., “Dark”) if available. Syntax highlighting can give you some color contrast, but it’s not fully customizable.
2. Use the Custom Panel macro:
You can keep your approach but add inline formatting (bold, color text, etc.) inside it for limited highlighting.
3. Use a third-party app:
Apps like Content Formatting for Confluence or Advanced Code Blocks let you define custom colors and themes — great if you need a true terminal look with syntax-style coloring.
There’s no built-in way to fully style text inside code blocks in the new editor yet, but these options are the closest alternatives.
Hope that helps!
Yes, I know this problem. The old macro had a "theme" parameter that allowed to choose a terminal-like color set, but the macro in the new editor doesn't support this.
There is a pretty good-looking app called Advanced Codeblocks. It seems that they are supporting themes, including dark one!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your response. I was hoping for a solution without plugins (and I'm not a Confluence admin),. But we'll do with what we have, I guess.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.