Inline Code in DokuWiki

我的梦境 提交于 2020-01-12 04:06:49

问题


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.


回答1:


You probably want to use ''%%here is code%%''. This formats it in monospace ('') and prevents any interpretion of possible wiki markup (%%).




回答2:


I was able to find an answer to my own question. Add quotes around the in-text code ''like this''. Simple, short, and works great.



来源:https://stackoverflow.com/questions/11662856/inline-code-in-dokuwiki

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!