Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/franciscohanna92/codemirror-dlx
https://github.com/franciscohanna92/codemirror-dlx
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/franciscohanna92/codemirror-dlx
- Owner: franciscohanna92
- Created: 2020-01-22T17:47:23.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-22T20:20:12.000Z (almost 5 years ago)
- Last Synced: 2024-04-26T11:22:28.093Z (9 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# codemirror-dlx
A CodeMirror mode for the DLX Assembly language### [Live Demo](https://franciscohanna.me/codemirror-dlx/)
## Usage
1. Include mode and style into your project.
```html
```or
```js
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.
```js
CodeMirror.fromTextArea(document.getElementById('your-textarea-id'), {
mode: 'dlx',
theme: 'dlx-dark'
})
```## About
Developed by [Sven Cheng](https://github.com/huesersohn).
Published and mantained by [Francisco Hanna](https://github.com/franciscohanna92).