0.1.0 • Published 9 years ago

js-highlight v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

js-highlight

Highlight JavaScript code with support of PEG.js.

install

npm install js-highlight

usage

<link rel="stylesheet" href="highlight.css">

<pre data-src="code-example"></pre>

<script type="text/sourcecode" id="code-example">
function sayHi() {
    console.log('Hello, world');
}

sayHi();
</script>
<script src="highlight.min.js"></script>