Creating Laravel Blade Language Injection Follow
I want to create Laravel Blade language injection for inside of a NOWDOC
e.g.:
public function render()
{
return <<<'blade'
<div>
navbar
</div>
<div class="container">
{{ $slot }}
</div>
blade;
}
There is no option for "Blade" or "Laravel Blade" in the language ID options.
How do I do this?
Please sign in to leave a comment.
Unfortunately, it is not possible to inject Blade at the moment.
I cannot find any requests on YouTrack about injecting Blade (so it could be a nice idea to submit it), here is a similar one for Twig:
https://youtrack.jetbrains.com/issue/WI-53909
What’s funny is using @lang Blade before the nowdoc seems to work.