CodeMirror Editor

Usage

Add the following to your form template (probably below the {% endblock content %} block):

{% block script_extra %}
  {{ block.super }}
  {% include 'base/_codemirror.html' %}
{% endblock script_extra %}

Any element with an ID of id_code will become a code editor.