This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Although I find Mark Occurrences useful, the mustard yellow I get by default is so distracting that I had to turn it off. So I went to Options / Fonts & Colors and looked for a way to tone down the effect. Apparently this one is missing, since (presumably) it is not part of the main syntax coloring logic. Please put in the color adjust option! Otherwise the Mark Occurrences feature might as well be broken.
The mark occurrence is language specific so you have to select correct language in fonts&colors panel.
Thanks for the tip; now it works for me too, and I am now enjoying the use of the feature with a muted variant of . Despite three serious tries, I could not find my way through the Options UI to this point. So I'm re-opening this as a bug in discoverability. There are three reasons I had trouble finding this control. 1. Under the All Languages pull-down, there are categories for identifier, string, method, comment, and many other settings which are language- dependent in their details. Mark Occurrences is "thing under caret". That is no more language-specific than identifier or string or method, so users will expect to see Mark Occurrences along with the others. Alternatively, since it is a sort of automatic search, put the configuration under Fonts & Colors => Highlighting, as a sibling of Highlight Search. (That was the first place I looked, actually.) 2. Even when the pull-down is set to All Languages, the preview pane gives a Java example (at least to me). This misled me to think that I was already controlling markup for Java. Yes, now that I understand the pull-down better I won't make that mistake again. But the GUI led me to believe that I was controlling Java _and_ all languages. 3. On the Editor => Mark Occurrences pane, the language pull-down is a no-op: The only option (in my setup) is Java, and at least first check-box appears to be language-independent. (The subsidiary check-boxes appear to be Java-dependent.) Therefore, Mark Occurrences is presented to me as a language-independent feature, with language dependent parts. This does not help me understand that the config. for Mark Occurrences must be sought under a Java-specific dialogue. So, it's still a problem. Here are two suggested fixes: A. (Simplest.) Put Mark Occurrences in the Fonts & Colors => Highlightings tab, or in the Syntax tab among the categories which apply to All Languages. B. (Fallback.) Put a button in Options => Editor => Mark Occurrences labeled "Set Highlighting..." which simply switches tabs and selects the appropriate item for editing, or at least put in a message about how to do it. Given that Mark Occurrences gets its own configuration pane, it is very strange that the pane offers no hint about how to configure the appearance of the feature. A complete solution would include A & B.
I am changing this to an enhancement.
Maybe (??) we could also use some of the space that is on the right from the "Language" combobox to give a user some hint (possibly a message) saying that the settings are related to "all languages" and that some other settings can be also set for a particular language. This hint ("Select a language for language specific settings.") would be displayed only if "All languages" are selected...
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss