Import ace version
Use ace editor as the code editor
Set editor read-only if text-area is read-only
Incorporate use of Ace code editor (thanks to Ulrich Dangel), with a couple of minor css changes.