GabiGrin/elm-codemirror
CodeMirror wrapper for Elm
{ "createdAt": "2016-03-26T12:09:20Z", "defaultBranch": "master", "description": "CodeMirror wrapper for Elm", "fullName": "GabiGrin/elm-codemirror", "homepage": null, "language": "JavaScript", "name": "elm-codemirror", "pushedAt": "2016-03-26T13:51:23Z", "stargazersCount": 19, "topics": [], "updatedAt": "2022-11-02T20:56:00Z", "url": "https://github.com/GabiGrin/elm-codemirror"}elm-codemirror
Section titled “elm-codemirror”Elm bindings for CodeMirror
Uses virtual-dom hooks as proposed by @sgillis (blog post)
install
Section titled “install”As this module uses native JS bindings, it cannot be published to the Elm package repository. If you want to use it clone the repo/download the source into your Elm project folder and add the folder as a source in elm-package.json
..."source-directories": [ "src", "elm-codemirror"],Currently it only supports basic features and is more of a proof of concept for embedding UI components that probably won’t be written in pure Elm soon (I hope I’m wrong!).
example
Section titled “example”To see it action clone this repo and then:
$ cd example$ elm make Main.elm --output=Main.js$ open index.htmlSee @sgillis’s elm-highcharts for another virtual-dom hook example with Elm