Home Download Buy Blog Forum Support

pyhton to change a tmTheme value

pyhton to change a tmTheme value

Postby vim on Fri Oct 30, 2009 12:36 pm

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:
Code: Select all
<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>
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Re: pyhton to change a tmTheme value

Postby vim on Sat Oct 31, 2009 6:04 am

cool, that was i was looking for. thanks nick.
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm


Return to Technical Support

Who is online

Users browsing this forum: ionutvmi and 15 guests