Creating Laravel Blade Language Injection

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?

2 comments
Comment actions Permalink

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

0
Comment actions Permalink

What’s funny is using @lang Blade before the nowdoc seems to work.

0

Please sign in to leave a comment.