jonas.ley
jonas.ley

Reputation: 45

Sublime Text - Change Color of called function

I want to change the color of a function I call from an object from white to something else.

What I have so far

I have changed almost all of the colors, but I can't find the name of this one. Currently I have the newest version of Sublime

Upvotes: 2

Views: 1127

Answers (1)

Florin
Florin

Reputation: 6179

I assume is php. You need to edit desired theme and add this code OR to edit "meta.function-call.object.php" key.

function get_template_with_data($type, $data)

<dict>
      <key>name</key>
      <string>Function Call</string>
      <key>scope</key>
      <string>meta.function-call</string>
      <key>settings</key>
      <dict>
            <key>foreground</key>
            <string>#0000FF</string>
      </dict>
</dict>

for this kind of function call:

$this->email->message($message);

<dict>
            <key>name</key>
            <string>Function name</string>
            <key>scope</key>
            <string>variable.function</string>
            <key>settings</key>
            <dict>
                <key>fontStyle</key>
                <string></string>
                <key>foreground</key>
                <string>#0000FF</string>
            </dict>
        </dict>

Upvotes: 1

Related Questions