Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bae9716298
|
No files matched your search
@@ -13,7 +13,7 @@ Configure `codly` with the languages. Like this:
|
|||||||
#import "@preview/codly:1.0.0": *
|
#import "@preview/codly:1.0.0": *
|
||||||
#show: codly-init
|
#show: codly-init
|
||||||
|
|
||||||
#import "@preview/codly-languages:0.1.0": *
|
#import "@preview/codly-languages:0.1.1": *
|
||||||
#codly(languages: codly-languages)
|
#codly(languages: codly-languages)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -113,26 +113,42 @@
|
|||||||
|
|
||||||
// add aliases for our languages (e.g. so both "```typ" and "```typst" work)
|
// add aliases for our languages (e.g. so both "```typ" and "```typst" work)
|
||||||
let aliases = (
|
let aliases = (
|
||||||
aarch64: ("arm"),
|
aarch64: ("arm"),
|
||||||
coffeescript: ("coffee"),
|
clojure: ("clj"),
|
||||||
cplusplus: ("cpp", "cxx", "c++"),
|
clojurescript: ("cljs"),
|
||||||
csharp: ("cs", "c#"),
|
coffeescript: ("coffee"),
|
||||||
docker: ("dockerfile"),
|
cplusplus: ("cpp", "cxx", "c++"),
|
||||||
fsharp: ("fs", "f#"),
|
csharp: ("cs", "c#"),
|
||||||
go: ("golang"),
|
docker: ("dockerfile"),
|
||||||
neovim: ("nvim"),
|
elixir: ("ex"),
|
||||||
objectivec: ("objc", "obj-c"),
|
erlang: ("erl"),
|
||||||
powershell: ("ps1"),
|
fsharp: ("fs", "f#"),
|
||||||
ruby: ("rb"),
|
go: ("golang"),
|
||||||
rust: ("rs"),
|
haskell: ("hs"),
|
||||||
sass: ("scss"),
|
javascript: ("js"),
|
||||||
shellscript: ("bash", "shell"),
|
julia: ("jl"),
|
||||||
ssh-config: ("ssh"),
|
kotlin: ("kt"),
|
||||||
typescript: ("ts"),
|
neovim: ("nvim"),
|
||||||
typst: ("typ", "typc", "typm"),
|
objectivec: ("objc", "obj-c"),
|
||||||
text: ("txt"),
|
ocaml: ("ml"),
|
||||||
vim: ("vimscript"),
|
perl: ("pl"),
|
||||||
visualbasic: ("vb"),
|
powershell: ("ps1"),
|
||||||
|
python: ("py"),
|
||||||
|
ruby: ("rb"),
|
||||||
|
rust: ("rs"),
|
||||||
|
sass: ("scss"),
|
||||||
|
scala: ("sc"),
|
||||||
|
shellscript: ("bash", "shell", "sh"),
|
||||||
|
solidity: ("sol"),
|
||||||
|
ssh-config: ("ssh"),
|
||||||
|
stylus: ("styl"),
|
||||||
|
terraform: ("tf"),
|
||||||
|
text: ("txt"),
|
||||||
|
typescript: ("ts"),
|
||||||
|
typst: ("typ", "typc", "typm"),
|
||||||
|
vim: ("vimscript"),
|
||||||
|
visualbasic: ("vb"),
|
||||||
|
yaml: ("yml")
|
||||||
)
|
)
|
||||||
for (lang, aliases) in aliases {
|
for (lang, aliases) in aliases {
|
||||||
for alias in aliases {
|
for alias in aliases {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "codly-languages"
|
name = "codly-languages"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
entrypoint = "lib.typ"
|
entrypoint = "lib.typ"
|
||||||
authors = ["Stephen Waits <steve@waits.net>"]
|
authors = ["Stephen Waits <steve@waits.net>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|||||||
Reference in new issue
Block a user