How to format an inline code in Confluence?

后端 未结 15 532
夕颜
夕颜 2020-12-22 17:57

How can I format an inline code in Confluence like this? I mean, not a separate code block, but just inline classname, for example.

相关标签:
15条回答
  • 2020-12-22 18:43

    If you want to insert a large code block with optional line numbers, etc use the Code Macro (available under Macros -> Other).

    0 讨论(0)
  • 2020-12-22 18:43

    At the time of this writing, I found that neither {{string}} nor {{ string }} work. My control panel only had the code block button.

    However, there was a shortcut listed for fixed-width formatting: Ctrl+Shift+M.

    I poked around in the menus but was not able to find out what version is being served to us.

    0 讨论(0)
  • 2020-12-22 18:45

    I use a combination of Zelphir and Peter Gluck's answers. i.e.

    1. (Mac-speak) Click COMMAND + SHIFT + D
    2. Select Markdown in the dropdown of the model pop-up
    3. Surround your text with the code tag - i.e. <code>bovvered</code>
    4. Click INSERT
    0 讨论(0)
提交回复
热议问题