module salix::ace::Editor
rascal-0.40.17
salix-contrib-0.2.7
Usage
import salix::ace::Editor;
Source code
http://github.com/usethesource/salix-contrib/src/main/rascal/salix/ace/Editor.rsc
Dependencies
import salix::HTML;
import salix::Node;
import salix::Core;
import salix::util::Mode;
import lang::json::IO;
import util::Maybe;
alias AceAddons
map[str, tuple[str src, str integrity]]
function initCode
str initCode(str name, str theme, str mode)
function aceSetText
Cmd aceSetText(str name, Msg msg, str code)
function onAceChange
Attr onAceChange(Msg(map[str,value]) f)
function ace
void ace(str name, str code="", Attr event = null(), str theme="ace/theme/monokai", str mode="ace/mode/javascript",
Maybe[Mode] modeDefinition = nothing(),
AceAddons modes=ACE_MODES, AceAddons themes=ACE_THEMES, str width="600px", str height="400px"
)