Sublime Forum

Pyhton to change a tmTheme value

#1

is there an easy way to manipulate values inside xml tree? specifically i want to change a tmTheme background value with simple python code.

the xml looks like:

<dict> <key>name</key> <string>TheThemeName</string> <key>settings</key> <array> <dict> <key>settings</key> <dict> <key>background</key> <string>#000000</string> <------- this is the value i want ro change <key>caret</key> <string>#FFFFFF</string> <key>foreground</key> <string>#EDEDED</string> <key>invisibles</key> <string>#CAE2FB3D</string> <key>lineHighlight</key> <string>#FFFFFF24</string> <key>selection</key> <string>#333397</string> </dict> </dict>

0 Likes

#2

cool, that was i was looking for. thanks nick.

0 Likes