parameters: (self, source)
docstring: Wrap the pygmented code.
  
          Sublime popups don't really support 'code', but since it doesn't
          hurt anything, we leave it in for the possiblity of future support.
          We get around the lack of proper 'code' support by converting any
          spaces after the intial space to nbsp.  We go ahead and convert tabs
          to 4 spaces as well.
docstring_summary: Wrap the pygmented code.
docstring_tokens: Wrap the pygmented code .
function: def _wrap_code(self, source):
          """
          Wrap the pygmented code.
  
          Sublime popups don't really support 'code', but since it doesn't
          hurt anything, we leave it in for the possiblity of future support.
          We get around the lack of proper 'code' support by converting any
          spaces after the intial space to nbsp.  We go ahead and convert tabs
          to 4 spaces as well.
          """
  
          yield 0, '<code class="%s">' % self.cssclass
          for i, t in source:
              text = ''
              matched = False
              for m in html_re.finditer(t):
                  matched = True
                  if m.group(1):
                      text += m.group(1)
                  elif m.group(3):
                      text += m.group(3)
                  else:
                      text += multi_space.sub(
                          replace_nbsp, m.group(2).replace('\t', ' ' * 4)
                      ).replace('&#39;', '\'').replace('&quot;', '"')
              if not matched:
                  text = multi_space.sub(
                      replace_nbsp, t.replace('\t', ' ' * 4)
                  ).replace('&#39;', '\'').replace('&quot;', '"')
              yield i, text
          yield 0, '</code>'
function_tokens: def _wrap_code ( self , source ) : yield 0 , '<code class="%s">' % self . cssclass for i , t in source : text = '' matched = False for m in html_re . finditer ( t ) : matched = True if m . group ( 1 ) : text += m . group ( 1 ) elif m . group ( 3 ) : text += m . group ( 3 ) else : text += multi_space . sub ( replace_nbsp , m . group ( 2 ) . replace ( '\t' , ' ' * 4 ) ) . replace ( '&#39;' , '\'' ) . replace ( '&quot;' , '"' ) if not matched : text = multi_space . sub ( replace_nbsp , t . replace ( '\t' , ' ' * 4 ) ) . replace ( '&#39;' , '\'' ) . replace ( '&quot;' , '"' ) yield i , text yield 0 , '</code>'