Have you tested using this?
html5.run(code)
If you include JS functions on your .html page this should be able to call them. This can do many of the things we would want. You can use it to tick callback functions on the .html page too.
I just tested html5.run(code) in building with Editor 2 and it works in engine though it doesn’t autocomplete.
function init(self)
sysinfo = sys.get_sys_info()
if sysinfo.system_name == "HTML5" then
html5.run("alert_this('Hello! I am an alert box!!');")
end
end
<script type='text/javascript'>
function alert_this(text)
{
alert(text);
}
</script>
What kind of HTML5 extension do you both want to make? It could probably be done most easily with a .js include.