compo-highlight.js
v0.8.14
Published
Highlight.js wrapper for MaskJS
Readme
Highlight.js Component
TagName
HighlightAttributes
|Name | Required |Description|
|------|----------|:---------:|
|lang | ✓ | Language Syntax |
|tab-spaced | | Default: 4. Replace tabs with spaces. Set 0 to disable |
Install & Usage
Install
Highlight.jslibrary.Install the component:
# npm npm install compo-highlight.js --save #bower bower install compo-highlight.js --saveLoad
Highlight.jslibrary andcompo-highlight.jscomponent 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>
