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 - Show color in background for color directives
Summary: Show color in background for color directives
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: CSS Editor (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-13 19:33 UTC by wraithguard01
Modified: 2014-11-11 07:54 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.