Skip to content

MikaelMayer/scalajs-ace

 
 

Repository files navigation

scalajs-ace

Static types for the Ace editor for Scala.js programs.

Usage

Add the following to your sbt build definition:

resolvers += "amateras-repo" at "http://amateras.sourceforge.jp/mvn/"

libraryDependencies += "com.scalawarrior" %%% "scalajs-ace" % "0.0.2"

then enjoy Ace in Scala.js!

import com.scalawarrior.scalajs.ace._

val editor = ace.edit("editor")
editor.setTheme("ace/theme/monokai")
editor.getSession().setMode("ace/mode/scala")

val text = editor.getValue()

About

Ace facade types for Scala.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scala 98.9%
  • Other 1.1%