How can I format an inline code
in Confluence like this
? I mean, not a separate code block, but just inline classname
, for example.
相关问题
- First confluence servlet plugin, ClassCastExceptio
- Confluence REST API Authorization issue
- Logstash Shipper configuration for Jira
- How can I create a new page to confluence with Pyt
- Adding link to local file in Confluence
相关文章
- How can I create a new page to confluence with Pyt
- CURL | 上传多个HTML文件汇合(CURL | Upload multiple html
- 获取SLF4JLogFactory例外尝试从合流3.0访问Web服务(Getting SLF4JLo
- Adding link to local file in Confluence
- How to check if Remote API is enabled in your Conf
- Force PDF links within iframe to open in parent wi
- Failed to execute goal on project in Maven
- 如何转换HTML代码汇合式的维基标记?(How do I convert HTML code to
If you have WinWord, you can copy what you need into that, touch up the results, and then paste that into Confluence. I've found that easier than the other solutions here.
If you want to insert a large code block with optional line numbers, etc use the Code Macro (available under Macros -> Other).
In Confluence 5.4.2 you can add surround your inline code with
<code></code>
tags in the source editor thusly:This can be useful where there are many fragments to modify since the double-brace feature only works when adding text interactively in the Confluence editor.
I use a combination of Zelphir and Peter Gluck's answers. i.e.
<code>bovvered</code>
You could ask your fiendly Confluence administrator to create a macro for you. Here is an example of a macro for Confluence 3.x
Then users can use
{inlinecode}like this{inlinecode}
You could also use the
{html}
or{style}
macros if they are installed or add this style to the stylesheet for your space.While you are at it ask your Confluence admin to create a kbd macro for you. Same as the above, except
Macro name
is kbd andTemplate
is:Then you can write documentation to tell users to hit the F1 and Enter keys.
As of Confluence 4 and above, typing two curly brackets does not work.
You now need to select Monospace font. Highlight the text you want to change and:
Windows: Ctrl + Shift + M
Mac: Command + Shift + M
Alternatively, next to the bold and italic options, you can click the "more" drop down and select Monospace: