dandavison / paredit.js

Generic reader and editor for s-expressions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Editing the language of gods civilized, even on the web.

For more details see the project page here.

Usage

npm install then see examples.

Dev

Load via lively.modules:

await load();

async function load() {
  var lm = lively.modules,
      files = ["./index.js",
               './lib/util.js',
               "./lib/reader.js",
               "./lib/navigator.js",
               "./lib/editor.js",
               // "./tests/reader-test.js",
               // "./tests/navigator-test.js",
               // "./tests/editor-test.js"
              ],
      p = lm.getPackage("paredit.js");
  for (let f of files) await lm.module(lively.lang.string.joinPath(p.url, f)).reload();
}

About

Generic reader and editor for s-expressions.

License:MIT License


Languages

Language:JavaScript 99.7%Language:HTML 0.3%