A web component wrapper to highlight code snippets in any webpage using highlighterJs
.
Maintained by Robo.
-
Import Web Components' polyfill:
<script src="//cdnjs.cloudflare.com/ajax/libs/polymer/0.0.20130711/polymer.min.js"></script>
-
Import Custom Element:
<link rel="import" href="src/highlight.html">
-
Start using it!
<highlight-code></highlight-code>
Attribute | Options | Default | Description |
---|---|---|---|
height |
int | 500 |
The height of snippet container |
width |
int | 500 |
THe width of snippet container |
tabreplace |
string | |
Overwrite default tab spaces '4' |
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
- v0.0.1 August 19, 2013
- Started project using highlighter-element