Stack Exchange formats code nicely with backticks using Markdown.
Example: int foo = bar++
I've seen other posts that recommend using listings, specifically \lstinline to do inline source code.
Using listings or any other packages, how could the Stack Exchange code formatting be emulated in LaTeX?
yes, i guess that is all it really is<- like this – Brandon Kreisel Nov 19 '13 at 19:27