baseddata.io/layouts/shortcodes/highlight.html

6 lines
168 B
HTML
Raw Normal View History

2024-08-01 14:06:16 +01:00
{{ $lang := .Get 0 }}
<div class="codeblock" data-lang="{{ $lang }}">
<pre><code class="{{ $lang }}">{{ highlight (trim .Inner "\n") $lang "" }}</code></pre>
</div>