AtomMaterialUI / color-highlighter

JetBrains plugin to preview colors directly from within the code.
MIT License
42 stars 25 forks source link

Hex values in Strings should be highlighted in Java and Kotlin #60

Closed euclio closed 2 years ago

euclio commented 2 years ago

Is your feature request related to a problem? Please describe. When writing Kotlin code like the following:

private const val COLOR: String = "#b0b0b0"

I would like this to be recognized as a color.

Describe the solution you'd like

The plugin recognizes hex color strings.

Describe alternatives you've considered

The particular library I'm using requires colors as strings starting with #, so I can't use an Int or a `Color.