Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/crafttweaker/codemirror-mode-zenscript
A CodeMirror mode for the ZenScript language
https://github.com/crafttweaker/codemirror-mode-zenscript
hacktoberfest
Last synced: 5 days ago
JSON representation
A CodeMirror mode for the ZenScript language
- Host: GitHub
- URL: https://github.com/crafttweaker/codemirror-mode-zenscript
- Owner: CraftTweaker
- License: mit
- Created: 2019-05-13T21:01:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-08T19:34:02.000Z (almost 2 years ago)
- Last Synced: 2024-10-15T09:17:41.690Z (28 days ago)
- Topics: hacktoberfest
- Language: JavaScript
- Size: 2.52 MB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
codemirror-mode-zenscript
==============
[![npm version](https://badge.fury.io/js/codemirror-mode-zenscript.svg)](https://badge.fury.io/js/codemirror-mode-zenscript)
[![dependencies Status](https://david-dm.org/CraftTweaker/codemirror-mode-zenscript/status.svg)](https://david-dm.org/CraftTweaker/codemirror-mode-zenscript)> A CodeMirror mode for [ZenScript](https://github.com/CraftTweaker/ZenScript)
## Installation
```console
npm install codemirror codemirror-mode-zenscript --save
```## Usage
1. Include `codemirror-mode-zenscript` into your project.
```html
```or
```js
// If using a build pipeline like webpack, you can simply import the module.
// The mode is registered automatically when importing. See below:
import CodeMirror from 'codemirror';
import registerZenScriptMode from 'codemirror-mode-zenscript';
```2. Set `zenscript` as the mode when creating the CodeMirror editor.
```js
CodeMirror.fromTextArea(document.getElementById('code'), {mode: 'zenscript'});
```