apache / apache/netbeans

Formating php file with html tags

Open
#9,353 0 comments 0 reactions 0 assignees View on GitHub
Editor 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 29

### What happened

When format code by Alt + Shift + F addings tabs before html tags
Before format

Image

After 1 Format

Image

After 10 Format

Image

How this fix? Comment not format too (screen 1 -> screen 2). but html tags always add tabs before. In ver 21 this not happen and config was imported from ver 21 where all fine

### Language / Project Type / NetBeans Component

PHP project

### How to reproduce

create php file with code and run format Alt + Shift + F

Image

settings

Image
Image

### Did this work correctly in an earlier version?

Apache NetBeans 25 or earlier

### Operating System

windows 10

### JDK

26

### Apache NetBeans packaging

Apache NetBeans binary zip

### Anything else

_No response_

### Are you willing to submit a pull request?

No

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in a PHP project with Alt + Shift + F, using the reported settings and a PHP file containing HTML tags and comments. Trace the PHP formatter entry point responsible for formatting HTML tags; done means repeated formatting no longer adds tabs before those tags and comments remain unformatted as reported.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.