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:
\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