How to add syntax highlighting to sublime text 2

前端 未结 2 657
粉色の甜心
粉色の甜心 2021-01-04 07:45

Given the string \"text text #{interpolation}\" Sublime Text 2 highlights the whole string with one color. I would like to highlight the interpolated text so i

2条回答
  •  死守一世寂寞
    2021-01-04 07:55

    If you dig into the included Dawn.tmTheme file (one of the only included themes that does this highlighting properly) you'll find these highlighting rules for String embedded-source, for some reason some of the themes leave this out completely:

    
        name
        String embedded-source
        scope
        string source
        settings
        
            background
            #6F8BBA26
            fontStyle
            
            foreground
            #080808
        
    
    

提交回复
热议问题