{# Code editor — CodeMirror 6 with VSCode-like syntax highlighting. Requires /web/static/dist/code_editor.js (npm run build:code-editor). One template serves both display and edit modes. Display mode mounts a read-only CodeMirror instance so the value still gets full highlighting (and line numbers + soft wrap) rather than a dumb
. The hidden input is always present so the value round-trips
   through the form; in read-only mode it's inert. #}