@iizukak/codemirror-lang-wgsl
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

CodeMirror 6 WGSL language package

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.

Readme

Keywords

Package Sidebar

Install

npm i @iizukak/codemirror-lang-wgsl

Weekly Downloads

81

Version

0.3.0

License

MIT

Unpacked Size

48.2 kB

Total Files

7

Last publish

Collaborators

  • iizukak