//>>built define("xace/formatters",["xace/lib_jsbeautify"],function(k){return{format:function(g,c){if(!0!==this.disabled){var a=g.session,d=g.selection.getRange(),e={space_before_conditional:!0,keep_array_indentation:!1,preserve_newlines:!0,unescape_strings:!0,jslint_happy:!1,brace_style:"end-expand",indent_char:" "};e.indent_size=a.getTabSize();var f=a.getLine(d.start.row).match(/^\s*/)[0],h=!1;d.start.column]/.test(b)?"html":"js":"handlebars"==c&&(e.indent_handlebars=!0,a="html");try{b=k[a+"_beautify"](b,e),h&&(b=b.replace(/^/gm,f).trim()),0===d.end.column&&(b+="\n"+f)}catch(l){return!1}return b}},modes:{javascript:"Javascript (JS Beautify)",html:"HTML (JS Beautify)",css:"CSS (JS Beautify)",less:"Less (JS Beautify)",xml:"XML (JS Beautify)",json:"JSON (JS Beautify)", handlebars:"Handlebars (JS Beautify)"}}}); //# sourceMappingURL=formatters.js.map