Thank you for being so “responsive”.
I deleted the JS (sorry).
My goal: i’m trying to use a Syntax Highlighter over a textarea placed inside a Rectangle of my Scene.
My rectangle is Id="box"
And inside my Rectangle, a Textarea with id=“txtdef”.
So first, i tried to use editArea (http://www.cdolivet.com/editarea/editarea/exemples/exemple_full.html) with success by inserting a piece of code in the main web page i insert my Hype Scene into :
id : “txtdef” // Hype Scene Textarea id
I would like now using codepress (http://codepress.sourceforge.net/) or codemirror (http://codemirror.net/index.html)
It seems they work the same way : give an Id, a little JS code + CSS.
However it doesn’t work and my Firefox Console tells me "textarea.value is null"
But if i create a TextArea Directly into my main webPage with Teh same Id, that’ok: i can highlight Syntax.
So here is the situation:
If i try calling from my Main Web Page codemirror.js for styling a textarea inside my web page: ok, no problem.
if i do the same thing for my Hype Scene TextArea, value is null.
It seems getElementById does not see my Hype TextArea. Or something like that i do not understand. All my tries were done inside the Main Web Page: can i do something inside Hype Script Editor ?
Thank you for your great work and for attention.