Files
typst-collection/codly-languages/README.md
T
swaits 079e80edb2 doc(codly-languages): update README
- clean up icon attribution section
- eliminate nauseating list of missing languages
2025-01-10 10:23:50 -07:00

2.2 KiB

codly-languages - Language configurations for codly

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.4": *
#codly(languages: codly-languages)

Then use code blocks as you normally would and the output, for supported languages, should look like this:

Example code listings

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.