Přidání xml editoru

This commit is contained in:
2021-01-31 21:23:41 +01:00
parent a9ac73a8e8
commit 40d19301c7
4 changed files with 10 additions and 6 deletions

View File

@@ -24,7 +24,12 @@ class View {
Connect.setRequestHeader("Content-Type", "text/xml");
Connect.send(null);
// Place the response in an XML document.
textArea.value = Connect.responseText;
var exampleText = document.createTextNode(Connect.responseText);
textArea.append(exampleText);
this.editor = ace.edit("textArea");
this.editor.setTheme("ace/theme/github");
this.editor.getSession().setMode("ace/mode/xml");
}
drawCommentTitles(comments) {