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

Is it possible to have colors for integers using the listings package? I tried to define integers from 0 to 9 in keywords then having keywords having a different style, but it doesn't work.

marked as duplicate by Torbjørn T., Marco Daniel, percusse, Werner, Peter Grill Jun 16 '12 at 18:07

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.