TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicates:
How can I change the color of digits when using the listings package?
Listings package: How can I format all numbers?
How to color digits with the listings package

How can you define a specific color for numbers in (Python) code using lstlisting?

As in this example:

Picture of python syntax

share|improve this question

marked as duplicate by Paulo Cereda, diabonas, Peter Grill, lockstep, Joseph Wright Mar 28 '12 at 15:35

This question was marked as an exact duplicate of an existing question.

    
Welcome to TeX.SE. Please keep in mind that it is always best to compose a fully compilable MWE that illustrates the problem including the \documentclass and the appropriate packages so that those trying to help don't have to recreate it. – Peter Grill Mar 28 '12 at 6:42
    
@PeterGrill, I'll keep that in mind. The report is due NOW, so the MWE will be next time! – trolle3000 Mar 28 '12 at 7:42

Browse other questions tagged or ask your own question.