329
|
1 |
global=value
|
|
2 |
|
|
3 |
[section][section-tag]
|
|
4 |
; section tags are currently supported by the parser (do not generate error)
|
|
5 |
; but do not generate any output
|
|
6 |
section-tag-support=partial
|
|
7 |
|
|
8 |
[quoting]
|
|
9 |
|
|
10 |
quoted = "some text in quotes"
|
|
11 |
apostrophed = 'some text in apostrophes'
|
|
12 |
|
|
13 |
unquoted = values are trimmed
|
|
14 |
we-need = " quotes or apostrophes"
|
|
15 |
to-keep = 'the leading/trailing whitespace '
|
|
16 |
|
|
17 |
[multiline]
|
|
18 |
|
|
19 |
quoted = "first line
|
|
20 |
second line"
|
|
21 |
|
|
22 |
apostrophed = 'first line
|
|
23 |
second line'
|
|
24 |
|
|
25 |
; unlike quoted/apostrophed strings, there is no line end inside the value:
|
|
26 |
backslashed = first line \
|
|
27 |
continues here
|
|
28 |
|
|
29 |
[comments] ; we can comment also secions
|
|
30 |
|
|
31 |
ini = "true" ; and even values
|
|
32 |
unix = true
|
|
33 |
|
|
34 |
; classic INI comment
|
|
35 |
# unix-style comments are also supported
|
|
36 |
|
|
37 |
but = be aware that ; this is part of the value, not a comment
|
|
38 |
; we need '' or "" to put comment on the same line as the value
|
|
39 |
|
|
40 |
[subkeys]
|
|
41 |
|
|
42 |
; we may specify subkeys in [] brackets:
|
|
43 |
a[x] = AX
|
|
44 |
a[y] = AY
|
|
45 |
|
|
46 |
; because this feature is quite uncommon, it is disabled by default
|
|
47 |
; and whole key+subkey becomes a key
|
|
48 |
; but we can turn on the subkey support by the CLI option: --enable-sub-keys true
|
|
49 |
; and get separete key and sub_key attributes on the output
|
|
50 |
|
|
51 |
[escaping]
|
|
52 |
|
|
53 |
escaped-multiline = first line\nsecond line
|
|
54 |
backslash = back\\slash
|
|
55 |
quotes = "quoted text with \"quotes\" inside"
|
|
56 |
tab = how\tvery
|
|
57 |
|
|
58 |
|