KDL language preview
1. Package manifest
nodes, nested children, and strings
horizon-dark
package {
name "svelte-highlight"
version 1.0
authors "Ada" "Grace"
} atom-one-dark
package {
name "svelte-highlight"
version 1.0
authors "Ada" "Grace"
} github-dark
package {
name "svelte-highlight"
version 1.0
authors "Ada" "Grace"
} dracula
package {
name "svelte-highlight"
version 1.0
authors "Ada" "Grace"
} nord
package {
name "svelte-highlight"
version 1.0
authors "Ada" "Grace"
} github
package {
name "svelte-highlight"
version 1.0
authors "Ada" "Grace"
} 2. Properties and literals
key=value properties and hash literals
horizon-dark
server host="localhost" port=8080 enabled=#true {
tls cert="cert.pem"
} atom-one-dark
server host="localhost" port=8080 enabled=#true {
tls cert="cert.pem"
} github-dark
server host="localhost" port=8080 enabled=#true {
tls cert="cert.pem"
} dracula
server host="localhost" port=8080 enabled=#true {
tls cert="cert.pem"
} nord
server host="localhost" port=8080 enabled=#true {
tls cert="cert.pem"
} github
server host="localhost" port=8080 enabled=#true {
tls cert="cert.pem"
} 3. Comments and type annotations
line comments, slashdash, and (type) values
horizon-dark
// app config
/- skipped 1
created (date)"2024-01-01"
timeout (u32)30 atom-one-dark
// app config
/- skipped 1
created (date)"2024-01-01"
timeout (u32)30 github-dark
// app config
/- skipped 1
created (date)"2024-01-01"
timeout (u32)30 dracula
// app config
/- skipped 1
created (date)"2024-01-01"
timeout (u32)30 nord
// app config
/- skipped 1
created (date)"2024-01-01"
timeout (u32)30 github
// app config
/- skipped 1
created (date)"2024-01-01"
timeout (u32)30