Sublime Monokai Syntax Highlighting: How to Color Method Calls and Make Color Different Inside Interpolated Strings

For a Sublime Monokai theme with Ruby, like you

1) call the color method

enter image description here

(ie how to make generate_key a different color.

2) make the color different inside the interpolated lines.

enter image description here

those. how you do "puts" is inside. Halp! " another colour?

+4
source share
1 answer

For your second question, include this in your color theme (more info here ):

<dict> <key>name</key> <string>Embedded Ruby Source</string> <key>scope</key> <string>string source.ruby.embedded.source</string> <key>settings</key> <dict> <key>foreground</key> <string>#D01F1E</string> </dict> </dict> 

Inclusion in:

enter image description here

For the first question, you can try this great tool to find out the keyword for method calls.

+3
source

All Articles