Provides a set of predefined language configurations for use with the codly
code listing package. For each supported language, this package defines a
name, icon, and color to use when displaying code.
Usage
Pretty simple. Import codly. Initialize it. Import codly-languages.
Configure codly with the languages. Like this:
#import "@preview/codly:1.2.0": *
#show: codly-init
#import "@preview/codly-languages:0.1.8": *
#codly(languages: codly-languages)
Then use code blocks as you normally would and the output, for supported languages, should look like this:
![]()
Contributing
Some languages are still missing. All contributions welcome.
Icon Attribution
| Icon | Source | License |
|---|---|---|
| BibTeX | Wikimedia | Public Use |
| JQ | Wikimedia | CC 3.0 |
| Lean | WIkimedia | Apache 2.0 |
| Strace | Wikimedia | CC 4.0 |
| Typst | Typst Website | Free to use |
All icons that are not listed in the table come from one of the following icon sets.
Which one can be taken from lib.typ.
| Iconset | Source | License |
|---|---|---|
| Devicon | Github | MIT |
| VSCode Icons | Github | MIT |
License
This package is released under the MIT License.