codemirror-dlx

0.0.2 • Public • Published

codemirror-dlx

A CodeMirror mode for the DLX Assembly language

Live Demo

Usage

  1. Include mode and style into your project.

    <link href="node_modules/codemirror-dlx/theme/dlx-dark.css">
    <script src="node_modules/codemirror-dlx/mode/dlx.js"></script>

    or

    import 'codemirror-dlx/theme/dlx-dark.css'
    import 'codemirror-dlx/mode/dlx'
  2. Set 'dlx' as the mode and choose your theme when creating the CodeMirror editor.

    CodeMirror.fromTextArea(document.getElementById('your-textarea-id'), { 
        mode: 'dlx',
        theme: 'dlx-dark'
    })

About

Developed by Sven Cheng.

Published and mantained by Francisco Hanna.

Package Sidebar

Install

npm i codemirror-dlx

Weekly Downloads

2

Version

0.0.2

License

MIT

Unpacked Size

10.7 kB

Total Files

8

Last publish

Collaborators

  • franciscohanna92