{#- A JSON document in a code box: line numbers, colours, keys that indent, and a check as you type that says where the document stops being JSON. The text itself stays a plain textarea that the form sends as it is; a layer behind it draws the same text in colour. -#} {% import "adminsite/_icons.html" as icons %} {%- set lines = row.value.count("\n") + 1 -%}