/** * Highlights source code using TTextHighlighter * @param array matches of code blocks * @return string highlighted code. */ protected function highlightCode($matches) { $text = html_entity_decode($matches[2], ENT_QUOTES, 'UTF-8'); $this->setLanguage($matches[1]); return parent::processText($text); }