Trait yii\apidoc\helpers\MarkdownHighlightTrait
Implemented by | yii\apidoc\helpers\ApiMarkdown |
---|---|
Available since version | 2.1.1 |
Source Code | https://github.com/yiisoft/yii2-apidoc/blob/master/helpers/MarkdownHighlightTrait.php |
MarkdownHighlightTrait provides code highlighting functionality for Markdown Parsers.
Public Methods
Method | Description | Defined By |
---|---|---|
highlight() | Highlights code | yii\apidoc\helpers\MarkdownHighlightTrait |
Protected Methods
Method | Description | Defined By |
---|---|---|
renderCode() | yii\apidoc\helpers\MarkdownHighlightTrait |
Method Details
Deprecated since 2.0.5 this method is not used anymore, highlight.php is used for highlighting
Highlights code
public static string highlight ( $code, $language ) | ||
$code | string | Code to highlight |
$language | string | Language of the code to highlight |
return | string | HTML of highlighted code |
---|
protected void renderCode ( $block ) | ||
$block |