Injecting LARAVEL BLADE syntax into NOWDOC

return <<<'HTML'
<button {{
$attributes->class([
'px-3 py-2 bg-green-600 text-white rounded-lg',
])->merge([
'type' => 'button',
])
}}>
{{ $slot }}
</button>
HTML;

This works, but if I change `HTML` to `BLADE` i do not get proper BLADE syntax highlighting. I tried creating a custom language injection and there was no option for LARAVEL BLADE.

Is this possible?

0
1 comment

Hm, this works fine both ways here. Are you checking this in PS 2021.1.1? Are you inside .blade.php file? 

Could you please attach screenshots of how this works for you & when it's not?

0

Please sign in to leave a comment.