I'm working on a TextMate like color scheme for NetBeans (twilight), I'm a开发者_开发问答lmost done, there's only one thing left: I can't set the html attributes highlighting.
As you can see normal attributes are okay, but the ID and CLASS attributes are highlighted with this ugly greenish color. How can I fix that?
Update
Here's the link to the theme.
id
and class
attributes are special, because they are used in css, so if you have stylesheet in your project with #wrong
declaration, you can ctrl + click value of id/class attribute and you will be redirected to style declaration for this element.
To change it : Options -> Fonts & Colors -> Select your theme -> Syntax Tab -> Language: Cascading Style Sheet -> Category: Mark Occurrences
This answer on Netbeans forum fixed it for me. http://forums.netbeans.org/post-91949.html#91949
On Netbeans 8.2, travel to:
"Tools" --> "Options" then travel to the "Fonts&Colors" parent tab. On this screen, on the "Syntax" sub-tab, select the Language "HTML". There is an option called "Css Embedded in HTML". Here you can change the background to the "inherit" such that your chosen theme background color will be recognized.
精彩评论