Turning your browser into a code editor
There’s an attribute available for DOM elements in the browser call HTMLElement.contentEditable. It is a Global attribute, meaning it is available to all HTML elements, even those not specified in the standard. You can make an element editable by adding the…