At the moment we use JSONFormatter to render the schemas and examples in the RAML modal pop-ups. That's in raml2html-nmos-theme/scripts.js.
We've moved to codemirror to render the standalone schemas and examples (see #6). Can someone workout how to use this for the popups as well?