[quote=“iamntz”]If you edit the theme, you will see that there are some generic scopes:
<dict>
<key>name</key>
<string>Control Structures</string>
<key>scope</key>
<string>keyword.control</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#64d9ee</string>
</dict>
</dict>
(used for, let’s say if statements; notice scope key: keyword.control)
You can then add another block, only for php:
<dict>
<key>name</key>
<string>Control Structures</string>
<key>scope</key>
<string>keyword.control.php</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#00FF00</string>
<key>background</key>
<string>#CC0000</string>
</dict>
</dict>
(notice the .php in the scope key)
What you have to do is to add some custom scopes. The shortcut you will need is ctrl+alt+shift+p and you will see in the statusbar current scope.
Make sense?[/quote]
Thanks it worked at last. I had to use scopehunter to find out that the correct scope is variable.other.php not just variable.php