code: func (p HTMLPrinter) Print(w io.Writer, kind Kind, tokText string) error {
  	if p.AsOrderedList {
  		if i := strings.Index(tokText, "\n"); i > -1 {
  			if err := p.Print(w, kind, tokText[:i]); err != nil {
  				return err
  			}
  			w.Write([]byte("</li>\n<li>"))
  			if err := p.Print(w, kind, tokText[i+1:]); err != nil {
  				return err
  			}
  			return nil
  		}
  	}
  
  	class := ((HTMLConfig)(p)).Class(kind)
  	if class != "" {
  		_, err := w.Write([]byte(`<span class="`))
  		if err != nil {
  			return err
  		}
  		_, err = io.WriteString(w, class)
  		if err != nil {
  			return err
  		}
  		_, err = w.Write([]byte(`">`))
  		if err != nil {
  			return err
  		}
  	}
  	template.HTMLEscape(w, []byte(tokText))
  	if class != "" {
  		_, err := w.Write([]byte(`</span>`))
  		if err != nil {
  			return err
  		}
  	}
  	return nil
  }
docs: // Print is the function that emits highlighted source code using
  // <span class="...">...</span> wrapper tags