I am using lstlisting package in LaTeX-mode. Sometimes I have a $ symbol inside the code. Emacs treats it as the beginning of formula. And the rest of the document becomes ugly:

In verbatim mode it renders special symbols correctly:

How to make it render lslisting as verbatim?
Add
"lstlisting"toLaTeX-verbatim-environments(usingM-x customize-variable) and reopen your file.