haidubogdan / netbeans-php-blade-plugin

Netbeans 18+ module plugin for php blade template files
Apache License 2.0
26 stars 4 forks source link

improve formatting #57

Closed haidubogdan closed 1 month ago

wimurk commented 2 months ago

Hello @haidubogdan i noticed a bug in the formatting

When you use a select input and add <optgroup> the formatting breaks How it should look image

After formatting image

Notice the formatting after the <opgroup ... it ignores the that additional tab.

haidubogdan commented 2 months ago

Hi, thank you for the observation. It seems <optgroup> tag was missing from the formatting rule. I've prepared the fix in a pre-release version : https://github.com/haidubogdan/netbeans-php-blade-plugin/releases/tag/prenbpr1.0.3 .

wimurk commented 1 month ago

I just tested the optgroup and this is working perfectly. Another thing i found is livewire components. image

How it should be : image

Maybe it breaks because it's inside a View component?

haidubogdan commented 1 month ago

Closing, Will try to switch to exact examples of formatting issues to fix. The latest releases > 2.4.9.6 should have the formatting of :

@section('id')
    <div>
        <x-card>
            <livewire:products-table/>
        </x-card>
    </div>
@endsection

working.