I am using package
listings for JSON data. I am following this example How to improve listings display of JSON files from this stackexchange answer. It generates the following output:
I added caption to the listing using:
I want to make the
listing look like this:
- The line numbers are in grey color and smaller font
keysare in bold font and black color, the quotes of the keys are not bold
valuescolors are based on their data type: string→green (with quotes green too), number→red, boolean→cyan, float→blue etc.
I can change the color of brackets, colon, and comma, and the font is fine too, but i am struggling with the
values formatting and line numbers color & size. Any help will be highly appreciated.