c

codly-languages

@preview

A set of language configurations for use with codly

v0.1.9
MIT
2 downloads

Package Information

Last Updated

1. Get the package

Download the package using the TPIX CLI:

tpix get @preview/codly-languages:0.1.9

2. Import in your Typst file

Add this to your .typ file:

#import "@preview/codly-languages:0.1.9": *

Version History

0.1.9
53aa4efe3998...
0.1.8
58787a643971...
0.1.7
f87cfec56ec3...
0.1.6
8f33b67a4c15...
0.1.5
5a8ac871750f...
0.1.4
802cba29eceb...
0.1.3
4417e71398a7...
0.1.2
9f1642d89535...
0.1.10
0a3d6c542fc4...
0.1.1
8e7f59a10b0d...
0.1.0
8c0f8620e344...

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.3.0": *
#show: codly-init

#import "@preview/codly-languages:0.1.9": *
#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
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.