preview-code-control

1.0.0 • Public • Published

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	

Readme

Keywords

none

Package Sidebar

Install

npm i preview-code-control

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

6.59 kB

Total Files

5

Last publish

Collaborators

  • matkainer