I have to include small code snippets like method and class names within continuous text.
I do not want to display those snippets as complete seperated listings, they should be displayed inline, similar to the option this site offers with backticks.
But let's face it, the options that are available out of the box are just plain ugly.
What I have in mind is the notation GitHub (and many other sites) use:

So, in particular:
- rounded corners
- contrastring border color
- different background color
- fixed width code font
- pretty (vertical) alignment within the text
I found many options to draw boxes around text (fancybox, colorbox, mdframed and others)
but none of those packages seemed to be capable to fulfill all of my requirements (then again, I'm not really a LaTeX expert).
So the question is: How can we make inline code pretty?


draw=<color>option to thenodeoperation. – Herr K. Oct 22 '13 at 22:30text=gray!50!blackinto the option of the\node. – Paul Gaborit Oct 22 '13 at 23:07listingspackage? The manual said one should not uselistingsinside arguments, so creating a custom macro as you did seems not to be the best option...? – LCsa Mar 11 '15 at 08:26\lstinlinedefinitely does not support frames or background color... – LCsa Mar 11 '15 at 08:35listingspackage to answer your question. You may want to consider opening a post for this question. I'm sure someone on TeX.SX will be able to provide an answer. – Herr K. Mar 11 '15 at 16:41