question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

blade template formating bug

See original GitHub issue

`@if($gateway )

<div class="row"> <div class="col-xs-12"> </div> </div> @endif` formating this piece of code which include blade template, removes first line " @if($gateway )"

Issue Analytics

  • State:open
  • Created 8 years ago
  • Reactions:4
  • Comments:16 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
nivvcommented, Mar 24, 2016

@bitwiseman yes, that’s correct. In my opinion it would be a good start to be able to ignore @-tags completely

1reaction
stevendesucommented, May 10, 2017

@bitwiseman At the time I looked at creating a PR for this project, or two other similar projects (projects which format HTML)

Unfortunately most of the projects were whole lexers and token analyzers and were complicated and would have taken several hours to understand before I ever made any additions to the code.

It was just quicker to import a DOM parser and re-build the HTML tree with the desired formatting 😄 Which is what I did

Read more comments on GitHub >

github_iconTop Results From Across the Web

vscode : problem with format laravel blade inside javascript
I found that the Laravel-Blade by amirmarmul formatted blade directives in JavaScript. like this var global = { !!str_replace('"', ...
Read more >
[BUG] Column format with blade template · Issue #1324 - GitHub
Hi, I can't export excel file with formula by using blade template. I use: $sheet->setColumnFormat(array( 'J11:J42' => '[hh]:mm' )); And in ...
Read more >
Reformatting HTML in Blade templates not working
When I select the menu item `Code > Reformat Code` nothing happens in Laravel Blade templates. How do I get PHPStorm 8.0.1 to...
Read more >
How to Format Laravel Blade Codes in Visual Studio Code ?
I have already read the article and installed some of the extensions that might solve my problem like beautify, auto close tags, laravel...
Read more >
Laravel Blade formatter - Visual Studio Marketplace
vscode-blade-formatter. An opinionated Blade file formatter for VSCode. Marketplace page is here. You can also format by same syntax ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found