codemirror-rs
A wasm-bindgen wrapper for CodeMirror
Usage
Add this to Cargo.toml:
[]
= "0.2"
Minimal Example
use ;
use *;
use ;
let document = window.unwrap.document.unwrap;
let text_area = document
.create_element
.unwrap
.
.unwrap;
document.body.unwrap.append_child.unwrap;
let options = default.line_numbers;
let editor = from_text_area;
editor.set_value;
editor.on_change;
License
Copyright (c) 2024 slowtec GmbH