CodeMirror is a JavaScript component that provides a code editor in the browser. It has a rich programming API and a focus on extensibility. From Wikipedia
The note-taking app emphasizes tight dependency control to shrink the attack surface.