Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
81 lines (80 sloc) 2.79 KB
{
modes: {
javascript: {
name: "JavaScript",
highlighter: "ace/mode/javascript",
extensions: [
"js"
],
completionTriggers: ["."],
commands: {
"Tools:Check": {
scriptUrl: "./check.js",
options: {
undef: true,
unused: true,
es5: true,
esnext: true,
devel: true,
browser: true,
node: true,
laxcomma: true,
laxbreak: true,
lastsemic: true,
onevar: false,
passfail: false,
maxerr: 1000,
expr: true,
multistr: true,
globalstrict: true
},
inputs: {
text: true
},
internal: true,
sandbox: "check"
},
"Tools:Index": {
scriptUrl: "./index.js",
inputs: {
text: true
},
internal: true,
sandbox: "index"
},
"Tools:Beautify": {
scriptUrl: "./beautify.js",
inputs: {
text: true,
preferences: true
}
},
"Tools:Complete:Snippet": {
scriptUrl: "/default/command/snippet_completer.js",
snippets: {
log: "console.log(${1})",
def: "define(function(require, exports, module) {\n\t${1}\n});",
fn: "function ${1}(${2}) {\n\t${3}\n}",
foreach: "for(var ${1:i} = 0; ${1:i} < ${2:array}.length; ${1:i}++) {\n\tvar ${3:item} = ${2:array}[${1:i}];\n\t${4}\n}",
forEach: "forEach(function(${0:el}) {\n\t${1}\n});",
setTimeout: "setTimeout(function() {\n\t${1}\n}, ${2:0})",
iterkeys: "Object.keys(${1:obj}).forEach(function(${2:key}) {\n\t${3}\n});"
},
internal: true,
sandbox: "complete"
}
},
handlers: {
index: [
"Tools:Index"
],
check: [
"Tools:Check"
],
complete: [
"Tools:Complete:Snippet"
]
}
}
}
}