Such control is simply the element
<textarea ... />
To make is a script editor, you need a separate script which gets the value of the property
, passing this value as an argument. Get a the result of the function and present is some other element.
Here is a complete example: http://sakryukov.org/freeware/calculator/
You can add a lot of other detail and features…