Color preview gutter icon for C++ code

I'm working with some C++ code featuring color values specified using rgb values. For a given color I would like to visualize it in the gutter, just as colors can be visualized e.g. for style sheets. We can easily adjust our syntax if need be.

Q: Are there currently any "hooks" in CLion that would cause a color preview to be rendered in the gutter for C++?

(I looked into Plugin API and found the ElementColorProvider. For Java there's the JavaColorProvider looking for instances of the java.awt.Color class. I guess this can't be done as generically for C++ since there's no common Color class, but perhaps it'd be possible to write something that looks for a configurable set of patterns such as #rrggbb and #aarrggbb.)

0

请先登录再写评论。