public function blockFencedCodeComplete($block)
    {
        $text = print_r($block, true);
        
        $matches = array();
        preg_match('/\[class\] => language-([a-zA-Z]+)/', $text, $matches);
        
        if (count($matches) > 1 && $matches[1] === 'shell') {
            $block['element']['text']['text'] = $this->minimalHighlighter->highlight($block['element']['text']['text']);
        }
        else {
            $block['element']['text']['text'] = $this->highlighter->highlight($block['element']['text']['text']);
        }

        return $block;
    }
public function blockFencedCodeComplete($block)
    {
        $text = print_r($block, true);
        
        $matches = array();
        preg_match('/\[class\] => language-([a-zA-Z]+)/', $text, $matches);
        
        if (count($matches) > 1 && $matches[1] === 'shell') {
            $block['element']['text']['text'] = $this->minimalHighlighter->highlight($block['element']['text']['text']);
        }
        else {
            $block['element']['text']['text'] = $this->highlighter->highlight($block['element']['text']['text']);
        }

        return $block;
    }
public function blockFencedCodeComplete ( $ block ) { $ text = print_r ( $ block , true ) ; $ matches = array ( ) ; preg_match ( '/\[class\] => language-([a-zA-Z]+)/' , $ text , $ matches ) ; if ( count ( $ matches ) > 1 && $ matches [ 1 ] === 'shell' ) { $ block [ 'element' ] [ 'text' ] [ 'text' ] = $ this -> minimalHighlighter -> highlight ( $ block [ 'element' ] [ 'text' ] [ 'text' ] ) ; } else { $ block [ 'element' ] [ 'text' ] [ 'text' ] = $ this -> highlighter -> highlight ( $ block [ 'element' ] [ 'text' ] [ 'text' ] ) ; } return $ block ; }
Use new highlighters for code blocks.

@param unknown $block
@return unknown
Use new highlighters for code blocks .