Hi, I want to intersperse some description with examples of code. So I want the code to be in fixed length font. When I select some chunk of text and click on the preformatted, whole line get's in this fixed size font. How do I change only the exact part?
Jakub,
You can also use, in Edit mode, Insert/other macros and then choose the "Insert code block" macro.
When you open that you can choose the format options from the "Syntax highliting" drop down menu.
There's loads of options there.
I think that might give you what you want. Cheers.
That's not bad, but it looks like it takes a whole line, not counting the border. What I want is to intersperse short code snippets with text description. On stackoverflow, I would use backticks for that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Which version of Confluence are you using, and which browser?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I added an image with an edit to the answer, but it didn't show in the non-edit mode, you can look at it, I guess you have edit privileges.
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.
You can select the text and pick "Monospace" from the formatter dropdown in the toolbar. The is under the "more" item after bold, italic, underline, and colour.
You can also use a wiki shortcut by typing {{monospace}}. The final } will convert the content to monospace.
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.
I have no monospace option there. Nor typing {{abc def}} will result in monospace neither
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.