Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IDE: Weird colors in html id and class parameter values

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

I've been playing around in Tools->Options->Fonts->Syntax but I can't seem to find the correct rites and invocations to change this.

Where should I be looking?

Here is a technical read out that illustrates the problem: enter image description here

like image 387
Matt Avatar asked Oct 19 '11 13:10

Matt


4 Answers

The values for class and id attributes are actually CSS selectors, which have a different syntax highlighting than normal HTML parameter values. To modify these you should alter the value of the Selector category in the Cascading Style Sheets language in the syntax tab of the fonts & colors options screen.

like image 122
Jan-Henk Avatar answered Nov 03 '22 00:11

Jan-Henk


What you are looking for is NOT in the Cascading Style Sheets section like many are saying. What your looking for is in the HTML section under the Fonts and colors. Look for Css Embedded in HTML. This is what you are looking for. Hope this helps.

*I'm using Netbeans 7.4

like image 7
user3267044 Avatar answered Nov 02 '22 22:11

user3267044


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

like image 2
yuks Avatar answered Nov 02 '22 22:11

yuks


Can be changed through the Fonts & Colors options, then select the Cascading Stylesheet category and find "Mark Occurences" on the list. From there, you can change the background and foreground colors for that syntax.

like image 1
joseph Avatar answered Nov 03 '22 00:11

joseph