text: import sublime
  import sublime_plugin
  
  
  def copy(view, text):
      sublime.set_clipboard(text)
      view.hide_popup()
      sublime.status_message('Scope name copied to clipboard')
  
  
  
  class RefreshColorSchemeCommand(sublime_plugin.WindowCommand):
  
      def run(self):
          print("Color Scheme Refreshed")
  
          for window in sublime.windows():
              for view in window.views():
                  view.settings().erase("color_scheme")
  
  
  class ShowScopeNameCommand(sublime_plugin.TextCommand):
      def run(self, edit):
          scope = self.view.scope_name(self.view.sel()[-1].b)
  
          html = """
              <style>
              body { margin: 0 8; }
              </style>
              <p>%s</p><p><a href="%s">Copy</a></p>
          """ % (scope.replace(' ', '<br>'), scope.rstrip())
  
          self.view.show_popup(html, on_navigate=lambda x: copy(self.view, x))
  