开发者

How to change the color scheme for html attributes in NetBeans?

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.

How to change the color scheme for html attributes in NetBeans?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜