src/View/Helper/HighlighterHelper.php
public function highlight($text, array $options = []) {
		if ($this->_config['debug']) {
			$this->_startTimer();
		}
		$highlightedText = $this->_getHighlighter()->highlight($text, $options);
		if ($this->_config['debug']) {
			$highlightedText .= $this->_timeElapsedFormatted($this->_endTimer());
		}
		return $highlightedText;
	}
public function highlight($text, array $options = []) {
		if ($this->_config['debug']) {
			$this->_startTimer();
		}
		$highlightedText = $this->_getHighlighter()->highlight($text, $options);
		if ($this->_config['debug']) {
			$highlightedText .= $this->_timeElapsedFormatted($this->_endTimer());
		}
		return $highlightedText;
	}
public function highlight ( $ text , array $ options = [ ] ) { if ( $ this -> _config [ 'debug' ] ) { $ this -> _startTimer ( ) ; } $ highlightedText = $ this -> _getHighlighter ( ) -> highlight ( $ text , $ options ) ; if ( $ this -> _config [ 'debug' ] ) { $ highlightedText .= $ this -> _timeElapsedFormatted ( $ this -> _endTimer ( ) ) ; } return $ highlightedText ; }
Highlight a string.

Options, depending on the specific highlighter class used:
- templates
- escape (defaults to true)
- tabToSpaces (defaults to 4)
- prefix (defaults to `language-`)

@param string $text
@param array $options
@return string
Highlight a string .