Instead of using
\usepackage{listings}
...
lstinline{for} or \lstinline{while} or \lstinline{main}
Here you \codeword{see} an \codeword{example} of \codeword{code}
how is it possible to define this syntax for inline-code, similar to Markdown:
Here you `see` an `example` of `code`
?
fancyvrbpackage orshortvrbpackage. Both can do what you want, perhaps using|or"as the quote marker. – Thruston Sep 11 '18 at 08:55