apache / apache/netbeans

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

Open
#8,815 0 comments 0 reactions 0 assignees View on GitHub
kind:bug needs:triage PHP
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### 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

Contributor guide

Open the contributing guide

Research direction

Start in NetBeans' PHP Fonts & Colors syntax settings and compare the configured variable color with class-field rendering in the editor and preview. Reproduce with a theme other than Norway Today; done means PHP class-field names use the variable color consistently with the preview.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.