Skip to content

PHP: Class Fields Should Inherit Variable Color Settings as in Editor Preview #8815

@ADrepo

Description

@ADrepo

Apache NetBeans version

Apache NetBeans 27

What happened

By changing the color of PHP variables, they are correctly displayed in the preview, while the class fields appear in a different color in the editor. The $ symbol is colored like the variable setting, while the name takes the color of the fields setting.

Image

The correct behavior is that the php class fields take the color of the variable setting as in the preview

Language / Project Type / NetBeans Component

PHP

How to reproduce

Go to to Tools->options
Select "Fonts & Colors" tab
In Syntax tab select php language
In category select "Variabile" an then change color

Did this work correctly in an earlier version?

No / Don't know

Operating System

Linux mint/ Windows

JDK

Java jdk 21

Apache NetBeans packaging

Apache NetBeans binary zip

Anything else

In "Norway Today" there is no such problem, in the others theme yes.

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