Syntax highlighting for numbers in LaTeX listings
I would like to define a language for lstlistings using `\lstdefinelanguage` that colors all numbers (e.g., `1`, `0.123`, `1e5`, `-12.01`) that appear in the code in a particular color. Is this possible? Are there examples of predefined language styles for listings that do this?
Syntax highlighting for numbers in LaTeX listings
===

I would like to define a language for lstlistings using `\lstdefinelanguage` that colors all numbers (e.g., `1`, `0.123`, `1e5`, `-12.01`) that appear in the code in a particular color. Is this possible? Are there examples of predefined language styles for listings that do this?