Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question

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.