forked from Theodor-Lindberg/NPP-TOML-Syntax
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample.toml
More file actions
42 lines (32 loc) · 755 Bytes
/
Copy pathexample.toml
File metadata and controls
42 lines (32 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# This is a TOML example document, mostly taken from Tom Preston-Werner.
multiline_string = """ This is a collapsable multiline comment
with a \"quote\".
A third line.
A fourth line.
"""
number_example = [ inf, nan, +100, -100 ]
[owner]
author = "Theodor Lindberg"
date = 1979-05-27T07:32:00-08:00 # First class dates
[database]
server = "192.168.1.1"
ports = [ 8001, 8002, 8003 ]
connection_max = 5_000
enabled = true
bin = 0b11111111
[servers]
# Indentation (tabs and/or spaces) is allowed but not required
[servers.alpha]
ip = "10.0.0.1"
oct = 0o377
[servers.beta]
ip = "10.0.0.2"
hex = 0xFF
[clients]
data = [ ["gamma", "delta"], [1, 2] ]
# Line breaks are OK when inside arrays
hosts = [
"alpha",
"omega",
'beta'
]