Atom 编辑器的 style.less 语言定制
Atom editor's style.less customization for languages
阅读, I figured out how to change Atom's syntax highlighting for MATLAB by editing the styles.less
file. Here is the full description
atom-text-editor.editor {
.syntax--source.syntax--matlab {
.syntax--meta.syntax--variable.syntax--other.syntax--valid.syntax--matlab {
color: #000000; //black
}
}
}
但是,当我尝试使用相同的原则来更改 Markdown 的字体设置时(范围是 text.md
),它没有用。
atom-text-editor.editor {
.sytax--text.syntax--md {
font-family: "Times New Roman";
}
}
然而,这工作正常。
atom-text-editor[data-grammar="text md"],
atom-text-editor[data-grammar="text md"].editor {
font-family: "Times New Roman";
}
任何人都可以提出这种行为背后的逻辑是什么吗?为什么MATLAB同样的方法对markdown没有影响?
Can anybody suggest what's the logic behind this behavior?
您在 syntax--text
中拼错了 syntax
。
阅读styles.less
file. Here is the full description
atom-text-editor.editor {
.syntax--source.syntax--matlab {
.syntax--meta.syntax--variable.syntax--other.syntax--valid.syntax--matlab {
color: #000000; //black
}
}
}
但是,当我尝试使用相同的原则来更改 Markdown 的字体设置时(范围是 text.md
),它没有用。
atom-text-editor.editor {
.sytax--text.syntax--md {
font-family: "Times New Roman";
}
}
然而,这工作正常。
atom-text-editor[data-grammar="text md"],
atom-text-editor[data-grammar="text md"].editor {
font-family: "Times New Roman";
}
任何人都可以提出这种行为背后的逻辑是什么吗?为什么MATLAB同样的方法对markdown没有影响?
Can anybody suggest what's the logic behind this behavior?
您在 syntax--text
中拼错了 syntax
。