Alan Turing
Alan Turing

Reputation: 12571

Inline Code in DokuWiki

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.

Upvotes: 44

Views: 15327

Answers (2)

Andreas Gohr
Andreas Gohr

Reputation: 4935

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

Upvotes: 99

Alan Turing
Alan Turing

Reputation: 12571

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.

Upvotes: 17

Related Questions