0.8.14 • Published 8 years ago
compo-highlight.js v0.8.14
Highlight.js Component
TagName
Highlight
Attributes
Name | Required | Description |
---|---|---|
lang | ✓ | Language Syntax |
tab-spaced | Default: 4 . Replace tabs with spaces. Set 0 to disable |
Install & Usage
Install
Highlight.js
library.Install the component:
# npm npm install compo-highlight.js --save #bower bower install compo-highlight.js --save
Load
Highlight.js
library andcompo-highlight.js
component with resource loaders you use.Usage
Mask syntax
h4 > 'MaskJS syntax: ' Highlight lang='mask' > """ define Foo { i > '~name' } """
HTML mixed syntax
h4 > 'MaskJS syntax: ' <Highlight lang='mask'> define Foo { i > '~name' } </Highlight>