wiki-grav/plugins/prism-highlight/templates/shortcodes/prism-highlight.html.twig

13 lines
626 B
Twig
Raw Normal View History

<div class="prism-wrapper">
<pre class="{{ classes }}"
{% if id %}id={{ id }}{% endif %}
{% if cl_output %}data-output="{{ cl_output }}"{% endif %}
{% if cl_filter_output %}data-filter-output="{{ cl_filter_output }}"{% endif %}
{% if cl_prompt %}data-prompt="{{ cl_prompt }}"{% endif %}
{% if ln_start %}data-start="{{ ln_start }}"{% endif %}
{% if highlight_lines %}data-line=" {{ highlight_lines }}"{% endif %}
2023-06-02 12:55:41 +02:00
{# {% if cl_continuation %}data-continuation-str="\"{% endif %} #}
2023-06-02 12:57:38 +02:00
{% if cl_continuation %}data-continuation-str="\"{% endif %}
2023-06-02 12:55:41 +02:00
><code>{{- content|e('html') -}}</code></pre>
</div>