Is it ever possible? I want display the dollar sign correctly in the beginning in the bracket, then I want to display a right arrow and display another bracket.
\begin{lstlisting}
//basic instruction
["\$p.red"] $\rightarrow$ ["!jQuery", ".red"]
\end{lstlisting}
Best Answer
If you're willing to play around a bit, yes:
We escape inside math mode and insert
\dollar
, which is a text version of$
.