我想让它像 Sublime Text 中那样突出显示:
我按照建议尝试了here https://discuss.atom.io/t/how-to-change-the-color-of-python-function-calls/22660/3:
atom-text-editor, atom-text-editor::shadow {
.meta.function-call.python {
color: '#abcde';
}
}
然而,Atom 的弃用说:
从 Atom v1.13.0 开始,内容atom-text-editor
元素
不再封装在影子 DOM 边界内。这意味着
你应该停止使用:host
and ::shadow
伪选择器,并前置
所有语法选择器syntax--
。为了防止破损
现有的样式表,Atom 会自动升级以下样式表
选择器:
-
atom-text-editor .meta.function-call.generic.python
,
-
atom-text-editor::shadow .meta.function-call.generic.python
=>atom-text-editor .meta.function-call.generic.python
,
atom-text-editor.editor
.syntax--meta.syntax--function-call.syntax--generic.syntax--python
选择器的自动翻译将在几个版本中删除
循环以最小化启动时间。请确保升级
尽快选择上述选择器。
应该是这样吗? (我尝试过,但没有成功)
atom-text-editor {
.meta.function-call.python {
color: '#66D9EF';
}
}
atom-text-editor.editor {
.syntax--meta.syntax--function-call.syntax--python {
color: '#66D9EF';
}
}
有人可以帮我突出显示 Atom 的 Monokai 语法颜色主题中的函数和方法调用吗?
您需要删除''
从颜色规则来看。那些不去那里。我测试过,这有效:
atom-text-editor.editor {
.syntax--meta.syntax--function-call.syntax--python {
color: #66D9EF;
}
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)