如何在Confluence中这样格式化内联代码?我的意思是,不是一个单独的代码块,而只是内联类名。
当前回答
对我来说最简单的方法是插入标记。
然后在文本框中输入花括号之间的文本。
它将在新行中插入格式化的文本,但您可以在任何地方复制它,甚至内联。
其他回答
在撰写本文时,我发现{{string}}和{{string}}都不能工作。我的控制面板上只有代码块按钮。
但是,有一个快捷方式列出了固定宽度格式:Ctrl+Shift+M。
我翻了翻菜单,但没能找到提供给我们的是什么版本。
在Confluence 5.4.2中,你可以在源代码编辑器中添加<code></code>标签包围你的内联代码:
Confluence will show <code>this inline code</code> in a fixed font.
这在需要修改许多片段的情况下非常有用,因为双大括号功能仅在Confluence编辑器中以交互方式添加文本时有效。
用{{}}包围内联文本。
警告:
You have to hit the spacebar after }} You can't copy inline preformatted text and maintain it's look. If you do copy it you might not be able to add {{ }} to fix it. Just retype it or paste without formatting (Cmd ⌘+Shift+V on Mac) then add {{ }} and hit space. If you add the {{ }} to existing text later, it can not be surrounded by other characters, e.g. if you want parenthesis around your preformatted text, you cannot fix (my text) by adding braces ({{my text}}). First add space around your text ( my text ) then add the {{ }}.
我结合了Zelphir和Peter Gluck的回答。即。
点击COMMAND + SHIFT + D 在模型弹出框的下拉菜单中选择Markdown 用代码标签包围你的文本-即<code> bovered </code> 点击插入
如果你有WinWord,你可以复制你需要的东西到它,修改结果,然后粘贴到Confluence。我发现它比其他解简单。