Adding a new color scheme to spyder: sublime text 2 colorschemes

106 views
Skip to first unread message

filip.k...@gmail.com

unread,
Mar 23, 2015, 6:54:52 PM3/23/15
to spyd...@googlegroups.com
Hi guys,

I was wondering whether you know a way to add a color scheme file of the format found in this webpage http://colorsublime.com/ to spyderlib so that it can be used as a syntax colorscheme?

Thank you!

Gonzalo Peña-Castellanos

unread,
Mar 24, 2015, 5:35:28 AM3/24/15
to spyd...@googlegroups.com
Hi there

There is no inbuilt support for this (yet) but it seems like a nice project for someone interested in developing the functionality.

Those *.tmTheme files are just XML files so you could use a the xml module in python to parse the contents and assign 
the usable ones to the custom colors in the preferences menu. 

You would need to add a new button inside the preferences dialogue (on top of the 'Reset to defaults values') that would then
call a openfile dialogue with some included file filters (*.thTheme in this case) and allow you for the selection of such file.

Interested in developing this?

Cheers
Reply all
Reply to author
Forward
0 new messages