sublimetext3 - Sublime Text 3 edit color scheme values -
i have following javascript code in sublime text 3 editor:
function get(db, segment_name, callback) { var query = { segment_name: segment_name }; }
i using colorschemeeditor edit theme's xml, since want change color of "segment_name" key in query object above. have trouble changing particular value, find scope, (see answer here), when change foreground color in xml file, not change color, have changed several other colors using technique. here corresponding xml snippet plugin says belongs scope:
<dict> <key>name</key> <string>es7 bind operator</string> <key>scope</key> <string>source.js constant.other.object.key.js string.unquoted.label.js</string> <key>settings</key> <dict> <key>fontstyle</key> <string>italic</string> <key>foreground</key> <string>#cdd3de</string> </dict> </dict>
when try change #cdd3de value , save, not apply new color. have tried using several different syntax definitions on file well, including plain javascript, javascript es6 syntax , javascript babel.
i have tried editing theme using downloadable application in linked answer.
is scope in theme's xml wrong? other solutions?
i able change color after adding 3 more listings in themes xml file this:
<dict> <key>name</key> <string>object properties</string> <key>scope</key> <string>source.js meta.group.braces.round.js meta.group.braces.square.js meta.group.braces.curly.js constant.other.object.key.js string.unquoted.label.js</string> <key>settings</key> <dict> <key>foreground</key> <string>#cdd3de</string> </dict> </dict> <dict> <key>name</key> <string>object properties 2</string> <key>scope</key> <string>source.js meta.group.braces.curly.js constant.other.object.key.js string.unquoted.label.js, </string> <key>settings</key> <dict> <key>foreground</key> <string>#cdd3de</string> </dict> </dict> <dict> <key>name</key> <string>object properties 3</string> <key>scope</key> <string>source.js meta.group.braces.curly meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js</string> <key>settings</key> <dict> <key>foreground</key> <string>#cdd3de</string> </dict> </dict>
this improved upon changing "name" key on listings and/or consolidate listings , maybe add more scopes keep things consistent. scopes added ones found when editing single javascript file.
Comments
Post a Comment