   )
 
 xmleditor = ace.edit "xmleditor"
-xmleditor.setTheme  "ace/theme/monokai"
-xmleditor.getSession().setMode  "ace/mode/xml"
+xmleditor.setTheme "ace/theme/monokai"
+xmleditor.getSession().setMode "ace/mode/xml"
 xmleditor.getSession().setValue $("xml").val()
 xmleditor.getSession().on(
   'change'

  jsRoutes.controllers.Application.save().ajax(
    data: $("#files").serialize()
    success: (data) ->
     window.history.pushState("", "XSL Transform", "/"+data[0]+"/"+data[1]);
     $("#id_slug").val(data[0]);
     $("#save").find("span").html("Update");
    error: (err) ->
      console.log err
      $("#alert").find("h4").html("Save oeps");

)

resulteditor = ace.edit "resulteditor"
resulteditor.setTheme "ace/theme/monokai"
resulteditor.getSession().setMode "ace/mode/xml"

$("#autotransform").click ->
  autotransform = !autotransform;
