IDE: weird colors in html id and class values

I just started using Netbeans and I like it, but I can’t find where to change the html id font and class parameter values, and it is currently the same color as my tags with a random background color.

I played in Tools-> Options-> Fonts-> Syntax, but I can’t find the correct rites and challenges to change this.

Where should I look?

Here is the technical information that illustrates the problem: enter image description here

+4
source share
4 answers

Class attribute values ​​and id are essentially CSS selectors that have different syntax highlighting than regular HTML parameter values. To change them, you must change the value of the Selector category in the language of cascading style sheets on the syntax tab of the font and color settings screen.

+16
source

What you are looking for is NOT in the Cascading Style Sheets section, as many say. What are you looking for in the HTML section in the Fonts and colors section. Find Css Embedded in HTML . This is what you are looking for. Hope this helps.

* I am using Netbeans 7.4

+7
source

You can change the color from cascading style sheets in the selector section and restart NetBeans.

+2
source

You can change it using the Fonts and Colors options, then select the Cascading Stylesheet category and find "Mark Occurences" in the list. From there, you can change the background and foreground color for this syntax.

+1
source

All Articles