DokuWiki中的内联代码 [英] Inline Code in DokuWiki
本文介绍了DokuWiki中的内联代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在寻找一种在DokuWiki中将代码作为段落的一部分包含的方法,就像我可以通过在StackOverflow like _so_
中添加反引号转义符一样.只需添加<code>bla</code>
即可将代码放在自己的行上.
I'm looking for a way to include code as part of a paragraph in DokuWiki like I can by adding backtick escapes in StackOverflow like _so_
. Simply adding <code>bla</code>
puts code on it's own line.
推荐答案
您可能想使用''%%here is code%%''
.这样会将其格式化为等号(''
),并防止对可能的Wiki标记(%%
)进行任何解释.
You probably want to use ''%%here is code%%''
. This formats it in monospace (''
) and prevents any interpretion of possible wiki markup (%%
).
这篇关于DokuWiki中的内联代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文