Skip to content

scalawarrior/scalajs-ace

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.4"

If are using webjars, you can introduce Ace by adding following dependency:

libraryDependencies += "org.webjars" % "ace" % "01.08.2014"

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

License

Stars

Watchers

Forks

Packages

No packages published

Languages