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.1.1": *
#show: codly-init
#import "@preview/codly-languages:0.1.5": *
#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 |
---|---|---|
css3.svg | CSS-Next/logo.css | CC0 |
cuda.svg | vscode-icons/vscode-icons | MIT |
lisp.svg | Wikipedia (User:Jooja) | CC BY-SA 4.0 |
typst-small.png | Dherse/codly | MIT |
All icons not listed in this table come from the devicons/devicon project, MIT licensed.
License
This package is released under the MIT License.