I’ve not looked into ace but would imagine it’s similar to Quill, that I use, courtesy of Tim Parnell.
You load the HTML you have quoted above into an HTMLViewer, using the LoadPage method. That gets the editor code and equally importantly, an environment within which it can work, into the HTMLViewer.
into the address bar. So doing what you showed in your OP was a bit like Kirk saying something he thought was profound, and Spock replying “Fascinating, Captain.”. IOW, your HTMLViewer1 was being ironic.
For example, to load some text into the HTMLViewer ready for editing, I have to format it up as HTML first (so, change newlines into
etc). Then, what I do in my Xojo app, is something like this:
function setHTML (htmlstr)
dangerouslyPasteHTML is the name of a quill API method; you’d have to look to see what functionality ace provides.
window.onerror = function (errmess, url, linenum)
Using window.status means I can use the Xojo StatusChanged event to obtain the new status string and then decode it.