.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}
CodeMirror
Home Manual Code
Language modes Django
Django template mode
My Django web application
{{ page.title|capfirst }}
{# traverse a list of items and produce links to their views. #} {% for item in items %}
{{ item.name }}
{% empty %} You have no items in your list. {% endfor %}
{% comment "this is a forgotten footer" %}
{% endcomment %}
var editor = CodeMirror.fromTextArea(document.getElementById("code"), { lineNumbers: true, mode: "django", indentUnit: 2, indentWithTabs: true, theme: "mdn-like" });
Mode for HTML with embedded Django template markup.