I am using listings-ext on Ubuntu 11.10 (with LyX) and listings.cfg defines the style colored-code - which I also use in the LaTeX preamble:
\usepackage[style=colored-code]{listings-ext}
But whenever I try to compile the document - into DVI or PDF I get this:
\newcommand
{\lstdef}[3]{%
The following styles weren't loadable:
,colored-code$
This may cause errors in the sequel.
And a message saying "Package Listings Error: style colored-code undefined".
How can I fix this?
This is what listings.cfg has:
\lstdefinestyle{colored-code}{
backgroundcolor=\color{yellow!10},%
basicstyle=\footnotesize\ttfamily,%
identifierstyle=\color{black},%
keywordstyle=\color{blue},%
stringstyle=\color{teal},%
commentstyle=\itshape\color{orange},%
}

listings.cfg? Or at least just the part where it definescolored-code? – Werner Jan 4 '12 at 18:39listings.cfgany different from what is posted in @someonr's "answer"? – Werner Jan 4 '12 at 18:56listings.cfg, I think this may be too localized. – Werner Jan 4 '12 at 19:08