(Automatically) display hexadecimal strings in RStudio console in their respective color?

457 views Asked by At

I am aware that packages like crayon can make the RStudio console output appear in all kinds of colors when manually asked to do so with functions such as blue() (https://github.com/r-lib/crayon).

What would really be awesome, however, would be a package or RStudio Addin that automatically colors strings in the console if they are color character names or hexadecimal strings. Take this vector as an example:

c("blue", "#ff00ff", "#CCE6FF")

printing it in the console would look like this enter image description here

Is there a way to make this happen?

EDIT: Apparently not - see my reply to this question.

0

There are 0 answers