compo-highlight.js

0.8.14 • Public • Published

Highlight.js Component

Bower version Bower version

TagName

    Highlight

Attributes

Name Required Description
lang Language Syntax
tab-spaced Default: 4. Replace tabs with spaces. Set 0 to disable

Install & Usage

  1. Install Highlight.js library.

  2. Install the component:

    # npm
    npm install compo-highlight.js --save
    #bower
    bower install compo-highlight.js --save
  3. Load Highlight.js library and compo-highlight.js component with resource loaders you use.

  4. 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>

/compo-highlight.js/

    Package Sidebar

    Install

    npm i compo-highlight.js

    Weekly Downloads

    4

    Version

    0.8.14

    License

    none

    Last publish

    Collaborators

    • tenbits