original_docstring: Configure all colors in the default colors dict.
docstring: Configure all colors in the default colors dict.
docstring_tokens: Configure all colors in the default colors dict .
code: def configure_colors(self):
          """Configure all colors in the default colors dict."""
          c, wrapper = self.c, self.wrapper
          getColor = c.config.getColor
              # getColor puts the color name in standard form:
              # color = color.replace(' ', '').lower().strip()
          for key in sorted(self.default_colors_dict.keys()):
              option_name, default_color = self.default_colors_dict[key]
              color = (
                  getColor(f"{self.language}_{option_name}") or
                  getColor(option_name) or
                  default_color
              )
              # Must use foreground, not fg.
              try:
                  wrapper.tag_configure(key, foreground=color)
              except Exception:  # Recover after a user settings error.
                  g.es_exception()
                  wrapper.tag_configure(key, foreground=default_color)
code_tokens: def configure_colors ( self ) : c , wrapper = self . c , self . wrapper getColor = c . config . getColor for key in sorted ( self . default_colors_dict . keys ( ) ) : option_name , default_color = self . default_colors_dict [ key ] color = ( getColor ( f"{self.language}_{option_name}" ) or getColor ( option_name ) or default_color ) try : wrapper . tag_configure ( key , foreground = color ) except Exception : g . es_exception ( ) wrapper . tag_configure ( key , foreground = default_color )
short_docstring: Configure all colors in the default colors dict.
short_docstring_tokens: Configure all colors in the default colors dict .
comment: """Configure all colors in the default colors dict."""$SEP$# getColor puts the color name in standard form:$SEP$# color = color.replace(' ', '').lower().strip()$SEP$# Must use foreground, not fg.$SEP$# Recover after a user settings error.