Monnoroch / ColorHighlighter

ColorHighlighter - is a plugin for the Sublime text 2 and 3, which underlays selected hexadecimal colorcodes (like "#FFFFFF", "rgb(255,255,255)", "white", etc.) with their real color. Also, plugin adds color picker to easily modify colors. Documentation: https://monnoroch.github.io/ColorHighlighter.
https://sublime.wbond.net/packages/Color%20Highlighter
1.31k stars 130 forks source link

How to reload my color scheme changes while developing it? #342

Open evandrocoan opened 7 years ago

evandrocoan commented 7 years ago

How to reload my color scheme changes while developing it?

Currently I do:

        print( "\n" + self.view.window().active_view().settings().get("color_scheme") )
        self.view.window().active_view().settings().erase("color_scheme")

And I get:


Packages/User/Color Highlighter/themes/Default Stylers.tmTheme

Then my color scheme changes to the file Default Stylers.tmTheme on the folder $Packages/Notepad++ Themes/Default Stylers.tmTheme are reloaded but I got the color highlight by this plugin broken like this:

image

Until I close the file and reopen the file $Packages/Notepad++ Themes/Default Stylers.tmTheme, this plugin functionality is restored:

image

  1. May this plugin auto-reload my theme file $Packages/Notepad++ Themes/Default Stylers.tmTheme upon changes to it?
  2. What extra commands beyond these I need to run to automate it?
    class ForceReloadSublimeColorScheme( sublime_plugin.TextCommand ):
    def run( self, edit ):
        print( "\n" + self.view.window().active_view().settings().get("color_scheme") )
        self.view.window().active_view().settings().erase("color_scheme")
emkei-cz commented 7 years ago

Hi,

When you change the color codes are not automatically updated... http://www56.zippyshare.com/v/jUVR11Lp/file.html

You don't know how to solve this problem?

THX