目前这是突出显示所有变量的代码,包括类属性(它们是红色的):
<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/