abe33 / atom-pigments

An Atom package to display colors in project and files.
MIT License
524 stars 68 forks source link

Add custom functions to be parsed? #482

Open homer3018 opened 2 years ago

homer3018 commented 2 years ago

Not really an issue but not sure either where to ask that question.

I am wondering about the possibility to ass custom functions to be parsed. My use case is very simple : rgb(123,123,123) will be parsed and a color will be displayed. In my case I'm using an R function which is very similar : rgb(123, 123, 123, maxColorValue = 255) where the fourth argument will always be like this. Because there is a fourth argument, it is not currently parsed as a color.

Any way of doing this kind of things ? Apologies if this is not the right place to ask that. Thanks ahead of time for the help :)