Debian Codegraph @

docs/layouts/_shortcodes/chroma-lexers.html

raw
1 {{/*
2 Renders an HTML template of Chroma lexers and their aliases.
3
4 @example {{< chroma-lexers >}}
5 */}}
6
7 <div class="overflow-x-auto">
8 <table>
9 <thead>
10 <th>Language</th>
11 <th>Identifiers</th>
12 </thead>
13 <tbody>
14 {{- range hugo.Data.docs.chroma.lexers }}
15 <tr>
16 <td>{{ .Name }}</td>
17 <td>
18 {{- range $k, $_ := .Aliases }}
19 {{- if $k }},{{ end }}
20 <code>{{ . }}</code>
21 {{- end }}
22 </td>
23 </tr>
24 {{- end }}
25 </tbody>
26 </table>
27 </div>