{# src/examen/templates/_code_block.html #} {# Required context: block = {filename, lineno_start, highlighted_html} #}
{{ block.filename }}
{% for line in block.highlighted_html.splitlines() -%}
{{ block.lineno_start + loop.index0 }}{{ line|safe }}
{% endfor -%}