0.3.0 • Published 11 months ago

@iizukak/codemirror-lang-wgsl v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

CodeMirror 6 WGSL language package

npm.io

This is a WGSL (WebGPU Shading Language) language package for CodeMirror editor.

Demo

You can try it online.

Build and Test

$ git clone git@github.com:iizukak/codemirror-lang-wgsl.git
$ cd codemirror-lang-wgsl.git
$ npm install
$ npm run prepare
$ npm test

API

Usage

You can use like below code.

import { EditorView, basicSetup } from "codemirror";

import { wgsl } from "@iizukak/codemirror-lang-wgsl";

let editor = new EditorView({
  extensions: [basicSetup, wgsl()],
  parent: document.body,
});

License Notification

This repository is based on some other libraries.