Unibeautify / unibeautify

One Beautifier to rule them all, One Beautifier to clean them, One Beautifier to bring them all and in the darkness sheen them
https://unibeautify.com/
MIT License
545 stars 41 forks source link

Laravel Blade Beautifier #269

Open baradhili opened 4 years ago

baradhili commented 4 years ago

Beautifier Details Name: Laravel Blade format Link to project/homepage: laravel.org

If this is a new beautifier, please fill out the below Languages Supported: Laravel Blade (html+php+special blade commands) How is it run (node, terminal, etc):

If this is to update an existing beautifier, please describe what should be updated

Additional context Since this was up on atom-beautifier but never got resolved.. dropping it here..

I know Laravel is "not a popular platform" so maybe thats why it never made it :+1: HTML beautifier simply ignores blade commands

eg.

@if (Route::is('settings*'))      @include('partials.adminmenu')

         @endif

becomes

 @if (Route::is('settings*')) @include('partials.adminmenu')

 @endif

Should really become

@if (Route::is('settings*')) 
         @include('partials.adminmenu')
@endif
issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.59. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

baradhili commented 4 years ago

a good rundown of what is needed is here https://stackoverflow.com/questions/56731020/adjusting-atom-beautify-js-beautify-for-laravel-blade also covers blade comments