Name Picker Malfunction

    jstransformer-highlight2

    2.0.1 • Public • Published

    jstransformer-highlight

    Just update dependence package to latest version!

    Highlight.js support for JSTransformers.

    Build Status Coverage Status Dependency Status Greenkeeper badge NPM version

    Options

    • lang - The language the code is in
    • auto - defaults to true if lang is undefined. Set this to true to have highlight.js auto-detect the language. Set this to false to disable auto-detection even when there is no lang option.

    Example

    var highlight = require('jstransformer')(require('jstransformer-highlight'))
     
    highlight.render('var i = 5 + 10;', { lang: 'javascript' }).body
    //=> '<span class=\"hljs-variable\"><span class=\"hljs-keyword\">var</span> i</span> = <span class=\"hljs-number\">5</span> + <span class=\"hljs-number\">10</span>;'

    License

    MIT

    Install

    npm i jstransformer-highlight2

    DownloadsWeekly Downloads

    0

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    4.34 kB

    Total Files

    5

    Last publish

    Collaborators

    • xiaohuoche