phptools-docs icon indicating copy to clipboard operation
phptools-docs copied to clipboard

Laravel Blade Editor

Open trollfalgar opened this issue 1 year ago • 6 comments

Hello again.

About the new version 1.44.14927 (pre-release)... (great additions by the way)...

Sugestions

  • [ ] Space inside double curly braces: {{ $nice }} not {{$meh}}.
  • [ ] Blade Snippets. Autocomplete for directives, global functions, etc.
  • [ ] Autocomplete for route names.
  • [ ] Blade Formatter. This would be awesome too, full blade format support.
  • [ ] Go To Controller or Livewire componente or Blade component class, inside the view.

trollfalgar avatar Feb 06 '24 18:02 trollfalgar

@trollfalgar: thank you for your feedback and your suggestions.

It is all planned;

One question -

Space inside double curly braces ...

What does it mean? is it related to the Blade Formatter?

jakubmisek avatar Feb 06 '24 23:02 jakubmisek

@trollfalgar: thank you for your feedback and your suggestions.

It is all planned;

One question -

Space inside double curly braces ...

What does it mean? is it related to the Blade Formatter?

Would be perfect auto space in two situations:

  • When type {{ or {!!, etc, automatically close with }} or !!} and add two spaces inside with the cursor at the middle to add the content.
  • When formating, basically add spaces around the content inside the braces.

preview.gif

There is a extension we are using just to do this: Laravel Blade Spacer.

Other feature interesting, is wrapper selected text inside a blade directive. Something like that:

demo.gif

trollfalgar avatar Feb 07 '24 00:02 trollfalgar

Hello, I received a false positive on blade.php file with this code: @lang('pagination.message', ['actionText' => $actionText]) The error reported: Syntax error: unexpected token ','PHP(PHP2014) Thanks

ghost avatar Feb 07 '24 00:02 ghost

Hello, I received a false positive on blade.php file with this code: @lang('pagination.message', ['actionText' => $actionText]) The error reported: Syntax error: unexpected token ','PHP(PHP2014) Thanks

I received this error too with @component directive.

trollfalgar avatar Feb 07 '24 01:02 trollfalgar

Hello, I received a false positive on blade.php file with this code: @lang('pagination.message', ['actionText' => $actionText]) The error reported: Syntax error: unexpected token ','PHP(PHP2014) Thanks

I received this error too with @component directive.

Same error with @can directive

AComasSamcla avatar Feb 07 '24 09:02 AComasSamcla

just released 1.44.14950 - fixes @can, @component, @lang (and some other tags with commas)

jakubmisek avatar Feb 07 '24 11:02 jakubmisek