cript>

    function toggleeditor() {
        var toggle_text = $("#toggleeditorbutton").text()
        if (toggle_text == '-') {
            hide_editor_area()
        } else {
            show_editor_area()
        }
    }

    function hide_editor_area() {
        $("#toggleeditorbutton").text('+')
        $("#erlangcode").hide()
    }

    function show_editor_area() {
        $("#toggleeditorbutton").text('-')
        $("#erlangcode").show()
        $('.code-editor').ace(
            { theme: 'twilight