This web component wraps the monaco editor and provides a simple way to integrate it into your HTMLForms.
<monaco-editor
name="code"
language="javascript"
theme="vs-dark"
value="console.log('Hello, World!')"
contenttype="application/javascript"
filename="example.js"
></monaco-editor>