Added syntax highlighting for XML Tools #156

Merged
bema merged 33 commits from bema/func/syntax_highlight into master 2023-05-08 11:11:18 +02:00
Showing only changes of commit 1371247985 - Show all commits

View File

@@ -116,14 +116,16 @@ function fillDefaultXSD(){
fetch(serverAddress + "/assets/samples/sampleXSD.xsd") fetch(serverAddress + "/assets/samples/sampleXSD.xsd")
.then( response => response.text() ) .then( response => response.text() )
.then( (XSDSchema) => { .then( (XSDSchema) => {
document.getElementById('transformArea').value = XSDSchema; document.getElementById('transformArea').innerText = XSDSchema;
highlightSyntax("transformArea");
} ) } )
fetch(serverAddress + "/assets/samples/sampleXMLForXSD.xml") fetch(serverAddress + "/assets/samples/sampleXMLForXSD.xml")
.then( response => response.text() ) .then( response => response.text() )
.then( (XMLSample) => { .then( (XMLSample) => {
document.getElementById('xmlArea').value = XMLSample; document.getElementById('xmlArea').innerText = XMLSample;
} ) highlightSyntax("xmlArea");
} )
} }