我该如何修复这个 Mako 语法荧光笔?
每次我尝试在 Sublime Text 中使用此语法荧光笔时,都会弹出此错误。我不知道如何修复它,谷歌似乎没有显示任何结果。这里是否有人是 XML / TM 语法专家可以提供帮助?
错误。 加载语法文件 Packages/HTML Mako/HTML (Mako).tmLanguage 时出错:未知包含 #embedded-code
我只是要链接到该文件,因为它是一个相当大的 XML 文档,我认为将其完整粘贴到此处不太好。 http://pastebin.com/ZjU51RCG
哦,对嵌入代码的引用位于第 892、928 行, 995 和 1032。
This error pops up every time I try to use this syntax highlighter in Sublime Text. I'm not sure how I would go about fixing it and Google doesn't seem to show any results. Would anyone here happen to be an XML / TM Syntax guru who could help?
The Error.
Error loading syntax file Packages/HTML Mako/HTML (Mako).tmLanguage: Unknown include
#embedded-code
I'm just going to link to the file as it's a rather large XML document and I don't think it'd be very nice of me to paste it in its entirety here.
http://pastebin.com/ZjU51RCG
Oh and the references to the embedded-code are at lines 892, 928, 995 and 1032.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这并没有真正修复该 XML,但我昨天刚刚编写了一个 Python 包的补充来支持 Mako 模板。
只需将此 http://pastebin.com/tLgU6P68 复制到 Packages/Python/Mako.tmLanguage 即可,您应该会变得简单突出显示支持识别大多数 mako 标签和 Python 块。
如有问题请留言。我在 osx 上使用 build 2165。
This is not really fix to that XML, but I just wrote yesterday an addition to Python bundle to support Mako templates.
Just copy this http://pastebin.com/tLgU6P68 to Packages/Python/Mako.tmLanguage and you should get simple highlighting support that recognizes most of mako tags and Python blocks.
If any problems please leave a comment. I'm using build 2165 on osx.