original_string: public function colored_box_with_pre_tag($title, $content, $rgb = 'FEEBE5') {
          //TODO MDL-31192 this tag removes xhtml strict error but cause warning
          $coloredbox = html_writer::start_tag('div', array());
          $coloredbox .= html_writer::start_tag('div',
                          array('style' => "border:solid 1px #DEDEDE;background:#" . $rgb
                              . ";color:#222222;padding:4px;"));
          $coloredbox .= html_writer::start_tag('pre', array());
          $coloredbox .= html_writer::start_tag('b', array());
          $coloredbox .= $title;
          $coloredbox .= html_writer::end_tag('b', array());
          $coloredbox .= html_writer::empty_tag('br', array());
          $coloredbox .= "\n" . $content . "\n";
          $coloredbox .= html_writer::end_tag('pre', array());
          $coloredbox .= html_writer::end_tag('div', array());
          $coloredbox .= html_writer::end_tag('div', array());
          return $coloredbox;
      }
code: public function colored_box_with_pre_tag($title, $content, $rgb = 'FEEBE5') {
          //TODO MDL-31192 this tag removes xhtml strict error but cause warning
          $coloredbox = html_writer::start_tag('div', array());
          $coloredbox .= html_writer::start_tag('div',
                          array('style' => "border:solid 1px #DEDEDE;background:#" . $rgb
                              . ";color:#222222;padding:4px;"));
          $coloredbox .= html_writer::start_tag('pre', array());
          $coloredbox .= html_writer::start_tag('b', array());
          $coloredbox .= $title;
          $coloredbox .= html_writer::end_tag('b', array());
          $coloredbox .= html_writer::empty_tag('br', array());
          $coloredbox .= "\n" . $content . "\n";
          $coloredbox .= html_writer::end_tag('pre', array());
          $coloredbox .= html_writer::end_tag('div', array());
          $coloredbox .= html_writer::end_tag('div', array());
          return $coloredbox;
      }
code_tokens: public function colored_box_with_pre_tag ( $ title , $ content , $ rgb = 'FEEBE5' ) { //TODO MDL-31192 this tag removes xhtml strict error but cause warning $ coloredbox = html_writer :: start_tag ( 'div' , array ( ) ) ; $ coloredbox .= html_writer :: start_tag ( 'div' , array ( 'style' => "border:solid 1px #DEDEDE;background:#" . $ rgb . ";color:#222222;padding:4px;" ) ) ; $ coloredbox .= html_writer :: start_tag ( 'pre' , array ( ) ) ; $ coloredbox .= html_writer :: start_tag ( 'b' , array ( ) ) ; $ coloredbox .= $ title ; $ coloredbox .= html_writer :: end_tag ( 'b' , array ( ) ) ; $ coloredbox .= html_writer :: empty_tag ( 'br' , array ( ) ) ; $ coloredbox .= "\n" . $ content . "\n" ; $ coloredbox .= html_writer :: end_tag ( 'pre' , array ( ) ) ; $ coloredbox .= html_writer :: end_tag ( 'div' , array ( ) ) ; $ coloredbox .= html_writer :: end_tag ( 'div' , array ( ) ) ; return $ coloredbox ; }
docstring: Return the html of a coloured box with content
  
  @param string $title - the title of the box
  @param string $content - the content to displayed
  @param string $rgb - the background color of the box
  @return string HTML code
docstring_tokens: Return the html of a coloured box with content