0.2.3 • Published 8 years ago

highlightjs-loader v0.2.3

Weekly downloads
124
License
MIT
Repository
github
Last release
8 years ago

highlightjs-loader

Highlights content inside the code tags with the language specified in the class attribute. If no language is provided in the class, highlightjs-loader will attempt to auto detect.

Usage

in your snippet.html

<code class="html">
	<div>Example code</div>
</code>

<code class="js">
	<div>Example code</div>
</code>

in your app:

var htmlSnippet = require('html!highlight./snippet.html');

As of v0.2.0 you can specify parameter on the loader and can drop the <code> tag in your html, i.e.

var htmlSnippet = require('!highlightjs?lang=html./snippet.html');
<div 
	id="someId"
	class="someClass">
	text
</div>

License

highlightjs-loader is available under MIT. See LICENSE for more details.

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago