Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/332.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Pycharm中的SCSS语言注入_Java_Intellij Idea_Pycharm - Fatal编程技术网

Java Pycharm中的SCSS语言注入

Java Pycharm中的SCSS语言注入,java,intellij-idea,pycharm,Java,Intellij Idea,Pycharm,我正在尝试为PyCharm编写一个语言注入,它将标记中的任何内容识别为SCS。通过对IntelliJ和PSI文档的一些检查,以及对IntelliLang.xml文件的直接编辑,这是我得到的最接近的结果: +xmlTag().withChild(xmltattribute().withLocalName(string().equalTo(“type”)).withValue(string().equalTo(“text/x-scss”)).withNamespace(string().equalT

我正在尝试为PyCharm编写一个语言注入,它将
标记中的任何内容识别为SCS。通过对IntelliJ和PSI文档的一些检查,以及对IntelliLang.xml文件的直接编辑,这是我得到的最接近的结果:

+xmlTag().withChild(xmltattribute().withLocalName(string().equalTo(“type”)).withValue(string().equalTo(“text/x-scss”)).withNamespace(string().equalTo(“http://www.w3.org/1999/xhtml"))

然而,这(a)似乎没有任何作用,(b)我一关闭语言注入窗格,PyCharm就将Java重写为
xmlTag().withLocalName(string().matches(“”)
。什么是正确的方法来做到这一点并使其保存?

事实证明,有一种内置的方法专门用于SASS

只需让您的标签如下所示:

<style rel="stylesheet/scss" type="text/css">

在我们的例子中,我们使用Django压缩机,因此它也可以正常工作:

<style rel="stylesheet/scss" type="text/x-scss">

你知道怎么做吗?