gpt4 book ai didi

php - 如何更改 Sublime text 2 中类属性的颜色?

转载 作者:可可西里 更新时间:2023-11-01 12:55:54 30 4
gpt4 key购买 nike

目前这是突出显示所有变量的代码,包括类属性(它们是红色的):

    <dict>
<key>name</key>
<string>Variables</string>
<key>scope</key>
<string>variable, support.variable</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string></string>
<key>foreground</key>
<string>#dc322f</string>
</dict>
</dict>

如何只更改类属性的颜色?

$object->property = 'xxx';

所以 $object 应该仍然是红色的,但我想要不同颜色的 property

最佳答案

variable.other.property 应该可以解决问题:

<dict>
<key>name</key>
<string>Variables</string>
<key>scope</key>
<string>variable.other.property</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string></string>
<key>foreground</key>
<string>#00ff00</string>
</dict>
</dict>

关于php - 如何更改 Sublime text 2 中类属性的颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10832823/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com