Is there a way to reset the style of a specific character sequence? I use a package listingsto display the source code and a property prebreakto display the escape character \to indicate that the current lines were broken. The problem is that sometimes the backslash is colored due to the use of syntax highlighting.
So I basically need something like an instruction resetstyle, as in the following imaginary example:
\textbf{Some bold text \resetstyle{not bold, no color} foo bar}
EDIT:
Here are the settings I use via lstset:
\lstset{
extendedchars = \true,
inputencoding = utf8,
basicstyle = \scriptsize\ttfamily,
breaklines = true,
breakindent = 10pt,
breakatwhitespace = true,
breakautoindent = true,
prebreak = \\,
frame = leftline,
showtabs = true,
numbers = left,
stepnumber = 2,
numberstyle = \footnotesize,
numbersep = 10pt,
keywordstyle = \color[RGB]{0,0,255},
commentstyle = \itshape\color[RGB]{120,120,120},
stringstyle = \color[rgb]{0.627,0.126,0.941},
emphstyle = {[0]\color[RGB]{236,0,168}},
emphstyle = {[1]\color[RGB]{34,139,34}\underbar},
emphstyle = {[2]\textbf}
}