Home Download Buy Blog Forum Support

Print Theme Selector

Print Theme Selector

Postby ajpalkovic on Tue Aug 09, 2011 10:03 pm

It's hard to debug themes sometimes, so I made a crude but quite effective plugin that prints the scope of the text at the current cursor. It reads the theme, finds every selector in the theme, scores them against the scope, and then prints out which selector scored the highest. Effectively this should show you what sublime things the text is (scope) and how sublime is coloring it (selector) so that it is much easier to debug themes.

https://github.com/ajpalkovic/SublimePl ... r/theme.py
Also drop this in a keybinding file:
Code: Select all
{ "keys": ["ctrl+shift+t"], "command": "print_theme_rule"}
ajpalkovic
 
Posts: 142
Joined: Fri Jun 10, 2011 10:21 pm

Re: Print Theme Selector

Postby ajpalkovic on Tue Aug 09, 2011 10:04 pm

Oops, by theme i meant color scheme.
ajpalkovic
 
Posts: 142
Joined: Fri Jun 10, 2011 10:21 pm

Re: Print Theme Selector

Postby rdougan on Tue Aug 16, 2011 9:28 pm

Thanks. I found this useful.
rdougan
 
Posts: 44
Joined: Sat Apr 09, 2011 2:37 am

Re: Print Theme Selector

Postby Kicweed on Wed Dec 05, 2012 1:24 pm

Thanks a lot, this is exactly what I was looking for when trying to customize the theme I'm currently using. Nice work.
Kicweed
 
Posts: 22
Joined: Mon Jan 09, 2012 9:48 am


Return to Plugin Announcements

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 14 guests