Reputation: 868
Anytime I write a variable's name I get this annoying IDK green or yellow highlight . What is it ? how to get rid of it?
Image here:
Upvotes: 23
Views: 18365
Reputation: 1267
I had this annoying problem on Netbeans 8.0.2, this is how I solved it step by step :
1) Tools > Options
2) Editor > Highlighting
3) Select Language Example - PHP
4) Uncheck the option ' Mark Occurrences of Symbol Under Caret'
5) Uncheck the option 'keep marks' before you apply changes to remove all the existing marks. ( I found out that leaving this option checked keeps the existing highlight)
Upvotes: 3
Reputation: 490
According to this forum, in order to manually edit the file to change the 'mark occurrences' color, you can look for the file to edit within this archive (Should work for other languages. Linked forum used Groovy):
\.netbeans\7.0\modules\org-netbeans-modules-[LANGUAGE NAME]-editor.jar
Look for this file:
\org\netbeans\modules\[LANGUAGE NAME]\editor\resources\FontColors.xml
Ctrl+F for mark-occurrences
and then edit the bgcolor
value to what you want.
Upvotes: 0
Reputation: 145
You can change the background color in Tools → Options → Fonts & Colors. Here you select Language: "C++" and Category: "Mark Occurrences." Select a different background color and be happy!
It was so annoying to me too.
Upvotes: 9
Reputation: 1780
I know this is an old question but I thought what I have discovered might help others. :)
I had the same annoying problem and no matter what I could not remove the highlighting with the Tools->Fonts & Colours option mentioned here.
What actually did work is the Tools->Editor->Highlighting and turn off the "Mark Occurrences of Symbol Under Caret".
Upvotes: 29
Reputation: 2402
I've had the exact same problem with PHP.
Tools -> options -> font & color then choose your language and it should be there...
(in php, the name of the variable is "Mark Occurences")
Upvotes: 3
Reputation: 9331
Simply deselect the icon I just "highlighted" with the black border
or type Alt+Shift+H
Upvotes: 5