Skip to content

Disabling "Keep Marks" highlighting setting has no effect for PHP #8581

Open
@arrinmurr

Description

@arrinmurr

Apache NetBeans version

Apache NetBeans 26

What happened

When the "Mark Occurrences Of Symbol Under Caret" highlighting setting is enabled for PHP, disabling the additional "Keep Marks" setting does not seem to have an effect. Highlighting always behaves as if the "Keep Marks" setting was enabled.

Language / Project Type / NetBeans Component

PHP project

How to reproduce

With the following settings:

  • Tools > Options > Editor > Highlighting
    • Language: PHP
    • Mark Occurrences Of Symbol Under Caret: Checked
    • Keep Marks: Unchecked

Move the cursor for example over a PHP variable to get it highlighted, and then away from the variable to an empty line. The variable and its occurrences stay highlighted.

Did this work correctly in an earlier version?

Apache NetBeans 24

Operating System

Kubuntu 24.04

JDK

OpenJDK 21

Apache NetBeans packaging

Apache NetBeans binary zip

Anything else

No response

Are you willing to submit a pull request?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    PHP[ci] enable extra PHP tests (php/php.editor)kind:bugBug report or fixneeds:triageRequires attention from one of the committers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions