{% set page_name = 'paste' %} {% extends 'layouts/text.html' %} {# Terminal output gets its own preferred theme setting, since many people seem to prefer a dark background for terminal output, but a light background for regular code. #} {% if highlighter.is_terminal_output %} {% set preferredStyleVar = 'preferredStyleTerminal' %} {% set defaultStyle = 'monokai' %} {% else %} {% set preferredStyleVar = 'preferredStyle' %} {% set defaultStyle = 'default' %} {% endif %} {% block highlight_class %}highlight-{{defaultStyle}}{% endblock %} {% block extra_head %} {% endblock %} {% block info %} {{num_lines(text)}} {{'line'|pluralize(num_lines(text))}} of {{highlighter.name}} {% endblock %} {% block highlight_start %} {% endblock %} {% block text %}
{% for i in range(1, num_lines(text) + 1) %} {{i}} {% endfor %}
{{highlighter.highlight(text)|safe}}
{% endblock %} {% block extra_toolbar %} {% endblock %} {% block inline_js %} {% endblock %}