VScode - Laravel Blade 语法 - 突出显示匹配的标签/对
在 VSCode 中寻找设置或最好是扩展来突出显示刀片语法。
例如,我想在大型刀片文件中找到 @if
语句的 @endif
或 @endforeach
>@foreach 循环等。
请参阅此处开始 HTML 标记如何用结束标记突出显示:
我环顾四周但没有发现任何东西。
Looking for a setting or an extension preferably in VSCode to highlight blade syntax.
For e.g. I'd like to find the @endif
for an @if
statement in a large blade file or the @endforeach
for the @foreach
loop etc.
See here how the opening HTML tag is highlighted with the closing one:
I've been looking around but have not found anything.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于 HTML 开始和结束标记,
请使用 突出显示匹配标记
对于 Blade 指令
我发现的最终解决方案是安装 PHP 刀片语法 和 刀片颜色 由同一个人开发的扩展。
但正如预览所示,它对我不起作用。
由于上次更新是在 2021 年 6 月,该项目似乎暂时被放弃了……
但是,一个好的主题和正确的格式可以挽救这一局面:
Solarized Dark
明夜蓝
Monokai 变暗
毁掉你的眼睛
For HTML opening and closing tags
Use Highlight Matching Tag
For Blade directives
The ultimate solution that I've found is installing Blade Syntax for PHP and Blade Color extensions which are developed by the same person.
But it didn't work for me as shown on its preview.
The project seems to be abandoned for now since the last update was in June 2021 ...
However a good theme with proper formatting can save the day:
Solarized Dark
Tomorrow Night Blue
Monokai Dimmed
Destroy your eyes