@wenyanlang/highlight

    0.1.1 • Public • Published

    文言五色 - Syntax highlighters for Wenyan Lang

    Check out the examples

    Syntax highlighters

    Format File
    CodeMirror codemirror.js
    Prism prism.js
    TextMate Grammar tmGrammar.json

    Highlight Themes

    wenyan-light

    Format File
    CodeMirror wenyan-light.codemirror.css
    Prism wenyan-light.prism.css

    Usage

    💡 Replace codemirror if you want to use different formats/editors

    CDN

    <!--Highlighter-->
    <script src='https://cdn.jsdelivr.net/gh/wenyan-lang/highlight/codemirror.js'></script>
    <!--Theme-->
    <link rel='stylesheet' type='text/css' href='https://cdn.jsdelivr.net/gh/wenyan-lang/highlight/wenyan-light.codemirror.css'>

    NPM

    npm i @wenyanlang/highlight
    require('@wenyanlang/highlight/codemirror')
     
    // or 
     
    import '@wenyanlang/highlight/codemirror'

    Build

    The syntax highlighter are generated from the language syntax definition. Rebuild by

    npm run build

    Install

    npm i @wenyanlang/highlight

    DownloadsWeekly Downloads

    21

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    11.7 kB

    Total Files

    7

    Last publish

    Collaborators

    • antfu
    • lingdong