NamesMT / blade-php

[Blade Syntax for PHP] Visual Studio Code extension
MIT License
2 stars 0 forks source link

Blade Components Highlighting #4

Open julien-sibille opened 10 months ago

julien-sibille commented 10 months ago

Could be great to have an highlight on <x-> elements, in order to differenciate them from html elements !

NamesMT commented 10 months ago

Hello Julien, I have not used PHP for a while now, great to see that the extension is still being helpful, could you provides some screencaps/snippets of the mentioned special elements?

Thanks!

julien-sibille commented 10 months ago

Hi ! It is Laravel Blade related stuff, you can find an exemple here. Laravel Blade components start with <x-, i hoped your highlighting extension could provide some specific colors to it. It can be self closing like so: <x-component/> or opened closed like html tags: <x-component></x-component> It can contain slots: <x-component><x-slot></x-slot></x-component>

NamesMT commented 10 months ago

Hi Julien,

Honestly saying I had no clue of what modifications I did to create this extension, and I currently doesn't have much time to do some revisit and tests,
Maybe you could try using onecentlin's extension in the meanwhile, her is much more maintained and based on the test files, <x-component/> is supported.

julien-sibille commented 10 months ago

Ok, thank you for your time and advice !