Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attributes are breaking when using format with laravel snippets #128

Open
surajitbasak109 opened this issue Mar 10, 2021 · 0 comments
Open

Comments

@surajitbasak109
Copy link

surajitbasak109 commented Mar 10, 2021

Hi there,

Thank you for providing this valuable extension for us. I like the formatting feature of this extension.

Can you make a feature where user can disable or enable the formatter to break the attribute.

What I am trying to suggest is:
By default this extension automatically breaks the html tag if the line exceeds some character or column width. But I don't want this, but some user may need this. So if you make a feature where we can specify if the attributes need to be break or not. Let's say:

{
  "blade.format.enable": true,
  "[blade]": {
    "breakOnLineExceed": "true/false"         
  }
}

So, if we change the property to true it will break the attribute, but if it is false it should not break them.

Currently this happens:
Before formatting:

<input type="radio" name="dashboard_view" value=1 class="flat-red" @if($result['role_settings']) {{ ($result['role_settings']->dashboard_view==1) ? "checked" : "" }} @endif />

After formatting:

<input type="radio" name="dashboard_view" value=1 class="flat-red"
                            @if($result['role_settings'])
                            {{ ($result['role_settings']->dashboard_view==1) ? "checked" : "" }} @endif />

Please let me know if there is any alternative or not to not break attributes. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant