Mojolicious :内联模板的语法突出显示
原则上是否可以(另外)创建类似 TEMPLATE 部分的内容来内联模板,以便更轻松地为模板创建合适的语法突出显示,因为 DATA 部分主要有自己的语法突出显示?
Would it be in principle possible to ( additionally ) create something like a TEMPLATE section for inlining the templates to make it easier to create a suitable syntax-highlighting for the template, since the DATA section has mostly its own syntax-highlighting?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您没有提到您使用的是什么文本编辑器,但是对于 VIM,有一个 Mojo 模板语法文件 可以突出显示
__DATA__
部分中的 .ep 和 .epl Mojolicious 模板。You didn't mention what text editor are you using, but for VIM there is a Mojo templates Syntax file that can highlight .ep and .epl Mojolicious templates in
__DATA__
sections.我最近刚刚阅读 Ovid 的关于突出显示 SQL HEREDOC 的文章。我认为类似的方法可以用于模板。
I just recently read Ovid's article on highlighting SQL HEREDOCs. I think similar approach could be used for templates.