如何在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 {{ }}.
其他回答
用{{}}包围内联文本。
警告:
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 {{ }}.
如果您想插入具有可选行号的大代码块等,请使用代码宏(在宏-> Other下可用)。
若要在“汇流”中插入内联单行字体,请将文本用双花括号括起来。
这是一个{{example}}。
如果您正在使用Confluence 4。x或更高,你也可以从段落样式菜单中选择“预格式化”选项。请注意,这将适用于整个生产线。
这里有完整的参考资料。
我发现用颜色格式化有点棘手,因为Confluence(5.6.3)对{{monospace}}块周围的空格非常挑剔。
用鼠标或光标标记文本,然后按:
Mac:⌘+ + M (CMD, Shift和M键) Windows/Linux: CTRL + M (CTRL, Shift和M键)