ng-codemirror Lightweight Codemirror directive for Angular.js Usage: <div ng-codemirror ng-model="codeValue"></div> Will update model, and scope properly.