sustained/CoffeeScript-Sublime-Plugin

string interpolation highlight

Closed this issue · 4 comments

Hi there
Thks for the package its really cool
Just one little problem I don't get string interpolation highlight

I have no idea if this because of my color scheme config or is it something that can be fixed in the plugin ?

Please can you tell me which colour scheme you are using. If it is a custom one can you upload it? Thank you.

@Xavura I use monokai, I just tested a few and in some of them its working but not on this one apparently

It's the theme and not this plugin... the colours for strings and interpolated strings in your theme are the same (or similar).

I'm fairly sure there's something you can change to fix this but I just had a quick look and I can't find it. You can however add this to your theme file and it will achieve the same thing:

        <dict>
            <key>name</key>
            <string>CoffeeScript String Interpolation</string>
            <key>scope</key>
            <string>source.coffee.embedded.source</string>
            <key>settings</key>
            <dict>
                <key>fontStyle</key>
                <string>italic</string>
                <key>foreground</key>
                <string>#FFFFFF</string>
                <key>background</key>
                <string>#000000</string>
            </dict>
        </dict>

You should be able to replace source.coffee.embedded.source with something that means "interpolated strings in any language" but I have no idea what it is.

Hope this helps?

Cool Thanks I ll try it out