This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 234346

Summary: Show color in background for color directives
Product: web Reporter: wraithguard01
Component: CSS EditorAssignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description wraithguard01 2013-08-13 19:33:30 UTC
It would be nice to be able to see the actual color behind the color directives in css files, for quick identification of colors. For instance, say we have the following css:

.myClass {
    color: #0000FF;
}

It would be nice if the background behind the #0000FF turned blue, showing what that color is. Anywhere colors are recognized, this behavior would hold, not just for the color directive, and not just hex colors, for instance, 

body {
    background-color: yellow;
}

would show a yellow background behind the word yellow. After thinking through it, it might just be enough to highlight the names of the 141 named colors and and strings that match the regex "(?i)#(?:[a-f0-9]{6}|[a-f0-9]{3})" in property values.