Webstorm中的Jade语言注入 [英] Jade language injection in Webstorm

查看:55
本文介绍了Webstorm中的Jade语言注入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 HTML 元素,我想将其内容视为 Jade(稍后将编译为纯 html).Webstorm 显然不承认这一点,所以它没有语法高亮:

如果我将 jade 添加为语言注入,它不会被列为可能的语言注入之一.

然而,webstorm 可以很好地识别 Jade 文件.

有没有办法将 Jade 添加为可能的语言注入?

解决方案

Jade 不是一种可注入的语言,它是一种模板语言,只能用作其他语言的主"语言.所以答案是不".如果您错过了注入模板语言的可能性,请关注 IDEA-106449 获取更新>

I have an HTML element whose contents I want to be treated as Jade (it will be compiled to pure html later). Webstorm obviously doesn't recognise this so it has no syntax highlighting:

If I go to add jade as a language injection, it isn't listed as one of the possible language injections.

However Jade files are recognized fine by webstorm.

Is there any way to add Jade as a possible language injection?

解决方案

Jade is not an injectable language, it's a templating language that can only be used as a 'master' language for other languages. So the answer is 'no'. If you miss a possibility to inject template languages, please follow IDEA-106449 for updates

这篇关于Webstorm中的Jade语言注入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆