I'm trying to typeset some python code, and I would like integer literals to be highlighted. I've come up, after about two hours of fighting with the documentation and various other questions here and on SO, with the following: \lstset{ % language=Python, otherkeywords={1, 2, 3, 4, 5, 6, 7, 8, 9, 0}, morekeywords=[2]{1, 2, 3, 4, 5, 6, 7, 8, 9, 0}, keywordstyle=[2]{\color{orange}}, keywordstyle=\co