To display code inline within DokuWiki enclose your text in ''%% and %%''.
https://www.epiphanydigest.com/2018/08/23/inline-code-in-dokuwiki/:
Ironically, it’s not shown in the official syntax documentation, except that if you view the source for that documentation, you realize this technique is actually used to put inline code throughout the syntax documentation. 😉