wv-code-highlight
Purpose
Helper for implementing prismjs.com code highlighter. Install this JS library and its CSS classes before using this Tag helper. The library is already installed in this developer's section.
Properties
name | description |
---|---|
wv-code-highlight |
html target: object type: default value: is required: Sets the highlighting language based on the install plugins for prism.js and according to the supported languages |
wv-code-string |
html target: object type: default value: is required: A string variable that provides the source code / html to be rendered. The implementation is done this way, as otherwise MVC will clear any used non standard attributes in the HTML case |
Example
<div wv-code-highlight="language-html" wv-code-string="@example1Code"></div>