Inline code and short verb with minted
minted
supports this since v2.0 (on CTAN since 2015/01/31):
\documentclass{article}
\usepackage{minted}
\begin{document}
You can use \mintinline{latex}{\mintinline{latex}{your $code$ goes here}} of
the minted~2 package to highlight source code inline. If you already use
\mintinline{latex}{\usepackage{minted}}
\end{document}
It is also possible to add a short verb sign:
from the Dokumentation:
\newmintinline['macro name']{'language'}{'options'}
. If a 'macro name' is not specified, then the created macro is called\'language'inline
So far there is no support for inline code since I (mistakenly, in hindsight) deemed this not important.
If I find some time to work on the next release, support for this may be added (and will probably break backwards compatibility). In the meantime, somebody has posted a patch (be sure to read all the comments!) to make the \mint
command inline. You may want to play with that.