This question already has an answer here:
- How to format an inline source code 2 answers
How do I show a code snippet directly in my text? I dont want to have an extra box for it like lstlisting or verbatim provide it. My example may should look like this:
Should I make a new command for grey background and code like font? Or is there a simpler way? If not, how to write a new command for that?