54 lines
1.3 KiB
TOML
54 lines
1.3 KiB
TOML
# ============================================================
|
|
# Basic types
|
|
# ============================================================
|
|
|
|
title = "Example TOML Configuration"
|
|
enabled = true
|
|
count = 42
|
|
pi = 3.14159
|
|
empty = ""
|
|
|
|
# ============================================================
|
|
# Arrays
|
|
# ============================================================
|
|
fruits = ["apple", "banana", "cherry"]
|
|
numbers = [1, 2, 3, 4, 5]
|
|
|
|
# Nested array
|
|
matrix = [[1, 2], [3, 4]]
|
|
|
|
# ============================================================
|
|
# Tables
|
|
# ============================================================
|
|
[owner]
|
|
name = "Alice"
|
|
dob = 1979-05-27T07:32:00Z
|
|
|
|
[database]
|
|
server = "192.168.1.1"
|
|
ports = [ 8001, 8001, 8002 ]
|
|
connection_max = 5000
|
|
enabled = true
|
|
|
|
[servers.alpha]
|
|
ip = "10.0.0.1"
|
|
dc = "east"
|
|
|
|
[servers.beta]
|
|
ip = "10.0.0.2"
|
|
dc = "west"
|
|
|
|
# ============================================================
|
|
# Inline tables
|
|
# ============================================================
|
|
clients = { name = "Bob", age = 30, active = true }
|
|
|
|
# ============================================================
|
|
# Multiline strings
|
|
# ============================================================
|
|
description = """
|
|
This is a TOML file
|
|
used for testing syntax highlighting.
|
|
It supports multiple lines.
|
|
"""
|