Can we use the pigments or color picker package to highlight color names in python scipts?


Let’s say I have a python script

color = 'red’
color2 = ‘blue’

If it were hello.less we can see the colors, but can we do same for the python scripts?


It’s certainly possible. pigments would just have to be tweaked to pick up color words in Python files. The thing for you to do would be to go to the pigments repo and search the issues to see if there’s anything like what you want already being discussed. If not, you submit an issue and give a well-thought-out message about why you believe that highlighting color words in Python would be useful.