codemirror

Externs for CodeMirror js library.
https://bitbucket.org/yar3333/haxe-codemirror

To install, run:

haxelib install codemirror 1.1.1 

See using Haxelib in Haxelib documentation for more information.

README.md

codemirror haxe library

Externs for CodeMirror (js-based text editor).

Example

HTML:

<!DOCTYPE html>
<html>
	<head>
		<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.13.2/codemirror.css">
		<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.13.2/codemirror.js"></script>
		<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.13.2/mode/javascript/javascript.js"></script>
	</head>
	<body>
		<script src="bin/test.js"></script>
	</body>
<html>

Haxe:

import js.Browser;
import js.codemirror.*;

class Main
{
    static function main()
	{
		var cm = new CodeMirror(Browser.document.body,
		{
			value: "function myScript() { return 100; }\n",
			mode:  "javascript"
		});
	}
}
Contributors
yar3333
Version
1.1.1
Published
1 year ago
License
MIT

All libraries are free

Every month, more than thousand developers use haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on Github!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on Github