protected function writeWithColor($color, $buffer, $lf = true) { if ($this->capture) { $this->color = $color; $this->buffer .= $buffer; } else { parent::writeWithColor($color, $buffer, $lf); } }
public function writeWithColor($color, $text) { $this->write('<div class="color $color">'); parent::writeWithColor($color, $text); $this->write('</div>'); }