@facelessuser. Thank you but I don’t quite follow - I’m a bit under the weather so maybe my brains’ not firing on all cylinders…
What I’m looking at is injecting a node such as
<dict>
<key>name</key>
<string>Magic Functions (Python)</string>
<key>scope</key>
<string>support.function.magic.python</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string></string>
<key>foreground</key>
<string>#00F5FF</string>
</dict>
</dict>
directly into a theme-file, at a suitable location, without having to parse or load the whole XML? I think your example demonstrates building the XML node, but how do I “inject” it…? Ta, Andy.
@Francisc. Sorry to side-step your post . But isn’t it better to see some sample code - like studiostyl.es - so that you can see precisely how your colour will impact the code? It will also be easier for someone to create, as they can (effectively) copy some sample code, stick it in ST, and read the scope at each character/word position.