/** * @see \wcf\system\SingletonFactory::init() */ protected function init() { parent::init(); $types = array('default' => 'hlKeywords1', 'keyword' => 'hlKeywords2', 'comment' => 'hlComments', 'string' => 'hlQuotes'); self::$colorToClass['<span style="color: ' . ini_get('highlight.html') . '">'] = '<span>'; foreach ($types as $type => $class) { self::$colorToClass['<span style="color: ' . ini_get('highlight.' . $type) . '">'] = '<span class="' . $class . '">'; } }
/** * @see \wcf\system\bbcode\highlighter\Highlighter::highlightQuotes() */ protected function highlightQuotes($string) { return StringStack::reinsertStrings(parent::highlightQuotes($string), 'highlighterQuotes'); }