code: def color_code(self, fore=None, back=None, style=None):
          
          # Map from style type to raw code formatter function.
          colorcodes = []
          resetcodes = []
          userstyles = {'style': style, 'back': back, 'fore': fore}
          for stype in userstyles:
              stylearg = userstyles.get(stype, None)
              if not stylearg:
                  # No value for this style name, don't use it.
                  continue
              # Get escape code for this style.
              code = self.get_escape_code(stype, stylearg)
              stylename = str(stylearg).lower()
              if (stype == 'style') and (stylename in ('0', )):
                  resetcodes.append(code)
              elif stylename.startswith('reset'):
                  resetcodes.append(code)
              else:
                  colorcodes.append(code)
          # Reset codes come first, to not override colors.
          return ''.join((''.join(resetcodes), ''.join(colorcodes)))
docs: Return the codes for this style/colors.