Directory

code-sample - Vaadin Add-on Directory

A wrapper element for highlight.js code-sample - Vaadin Add-on Directory
# <code-sample> [![Build Status](https://img.shields.io/travis/kcmr/code-sample/master.svg?style=flat-square)](https://travis-ci.org/kcmr/code-sample) [![codecov](https://codecov.io/gh/kcmr/code-sample/branch/master/graph/badge.svg)](https://codecov.io/gh/kcmr/code-sample) [![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg?style=flat-square)](https://www.webcomponents.org/element/@kuscamara/code-sample) [![npm version](https://badge.fury.io/js/%40kuscamara%2Fcode-sample.svg)](https://badge.fury.io/js/%40kuscamara%2Fcode-sample) ![Polymer 3](https://img.shields.io/badge/Polymer-3-green.svg) > A wrapper element for [highlight.js](https://highlightjs.org/) A themeable sample code snippet that uses [highlight.js](https://highlightjs.org/) for syntax highlighting. Forget to worry about spaces, indentation, HTML entities, etc. ```html ``` ## Installation 1. Install the component using Npm: ```bash $ npm i -S @kuscamara/code-sample ``` 2. Import Web Components loader (optional): ```html ``` 3. Import the component: ```html ``` ## Usage The code to highlight must be provided inside a `