/* $name Ace Editor */

	var $name = ace.edit("$name");
	ace.require("ace/ext/language_tools");
	$name.session.setMode("ace/mode/javascript");
	$name.setTheme("ace/theme/tomorrow");
	// enable autocompletion
		$name.setOptions({
			enableBasicAutocompletion: true,

			enableLiveAutocompletion: false
		});

$name.commands.on("afterExec", function(e){
	if (e.command.name == "insertstring"&&/^[\w.]$/.test(e.args)) {
	$name.execCommand("startAutocomplete")
}
});
	
/* End Ace Editor */