I am using
lstlisting to add
shell code into my tex document. The
shell code contains special character,
$. Emacs assumes it as a Math mode mark & all characters that come after dollar symbol are shown in math-mode and latex keywords are n't highlighted in their normal bright green color. It looks like this,
I use AUCTeX.