How to create a white-on-black style for LaTeX listings...
I've been looking at Philip Bunge's post on [how to create a "Tango" style with LaTeX listings][1], and trying to adapt this to make the default text style white and the background black (this is for slides, not an article!). This is what I added:

    \definecolor{Black}{gray}{0.0}
    \definecolor{White}{gray}{0.9}
    ...
    \lstset{
      basicstyle={\color{White}},
      backgroundcolor={\color{Black}},
      ...
    }

This assumes that `basicstyle` sets the default style of all text. The listings documentation says this:

> basicstyle is selected at the beginning of each listing. You could use \footnotesize,
\small, \itshape, \ttfamily, or something like that. The last token of <basic style> must not read any following characters.

The output of this still shows "default" text as black. It is possible to set *more* style directives that cover most tokens in a given programming language, but even doing this some tokens (such as brackets and other punctuation) will be missed. What did I do wrong?

  [1]: http://pbunge.crimson.ch/2008/12/tango-syntax-highlighting/
How to create a white-on-black style for LaTeX listings...
===

I've been looking at Philip Bunge's post on [how to create a "Tango" style with LaTeX listings][1], and trying to adapt this to make the default text style white and the background black (this is for slides, not an article!). This is what I added:

    \definecolor{Black}{gray}{0.0}
    \definecolor{White}{gray}{0.9}
    ...
    \lstset{
      basicstyle={\color{White}},
      backgroundcolor={\color{Black}},
      ...
    }

This assumes that `basicstyle` sets the default style of all text. The listings documentation says this:

> basicstyle is selected at the beginning of each listing. You could use \footnotesize,
\small, \itshape, \ttfamily, or something like that. The last token of <basic style> must not read any following characters.

The output of this still shows "default" text as black. It is possible to set *more* style directives that cover most tokens in a given programming language, but even doing this some tokens (such as brackets and other punctuation) will be missed. What did I do wrong?

  [1]: http://pbunge.crimson.ch/2008/12/tango-syntax-highlighting/