hugo/docs/layouts/_shortcodes/chroma-lexers.html
Bjørn Erik Pedersen 61a286595e
Some checks are pending
Test / test (1.23.x, ubuntu-latest) (push) Waiting to run
Test / test (1.23.x, windows-latest) (push) Waiting to run
Test / test (1.24.x, ubuntu-latest) (push) Waiting to run
Test / test (1.24.x, windows-latest) (push) Waiting to run
Merge commit 'b3d87dd0fd'
2025-04-24 10:23:16 +02:00

28 lines
625 B
HTML

{{/* prettier-ignore-start */ -}}
{{- /*
Renders an HTML template of Chroma lexers and their aliases.
@example {{< chroma-lexers >}}
*/ -}}
{{/* prettier-ignore-end */ -}}
<div class="overflow-x-auto">
<table>
<thead>
<th>Language</th>
<th>Identifiers</th>
</thead>
<tbody>
{{- range site.Data.docs.chroma.lexers }}
<tr>
<td>{{ .Name }}</td>
<td>
{{- range $k, $_ := .Aliases }}
{{- if $k }},{{ end }}
<code>{{ . }}</code>
{{- end }}
</td>
</tr>
{{- end }}
</tbody>
</table>
</div>