Skip to content

Formating php file with html tags #9353

@piraids

Description

@piraids

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

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions