I want to writing code listings with asterisk in-line not above line.
That is something like this:
But when I tried this:
\documentclass{article}
\usepackage{listings}
\begin{document}
\begin{lstlisting}
*i
\end{lstlisting}
\end{document}
I ended up getting this:
How do I fix this?

