function output($show_lines = TRUE, $print = TRUE) { $this->process(); if (empty($this->error)) { // If no errors have occured, print the formatted code $ret = CrayonFormatter::print_code($this, $this->formatted_code, $show_lines, $print); } else { $ret = CrayonFormatter::print_error($this, $this->error, '', $print); } // Reset the error message at the end of the print session $this->error = ''; // If $print = FALSE, $ret will contain the output return $ret; }