preview-code-control
v1.0.0
Published
A simple webcomponent that displays code preview via highlight.js and shows a preview of the created code in an iframe
Downloads
1
Readme
preview-code-control
A simple webcomponent that displays code preview via highlight.js and shows a preview of the created code in an iframe
Usage
<preview-code-control
location="relative/path/to/code-snippets"
show="code,html,preview"
>
Please wait while the code is being loaded...
</preview-code-control>
Attributes
* `location` - The location of the code snippets. See format for details
* `show` - The elements to show, in the order they should be shown. The first is selected per default