mirror of
https://github.com/benhoyt/inih.git
synced 2025-01-28 22:52:54 +08:00
32 lines
749 B
INI
32 lines
749 B
INI
; This is an INI file
|
|
[section1] ; section comment
|
|
one=This is a test ; name=value comment
|
|
two = 1234
|
|
; x=y
|
|
|
|
[ section 2 ]
|
|
happy = 4
|
|
sad =
|
|
|
|
[empty]
|
|
; do nothing
|
|
|
|
[comment_test]
|
|
test1 = 1;2;3 ; only this will be a comment
|
|
test2 = 2;3;4;this won't be a comment, needs whitespace before ';'
|
|
test;3 = 345 ; key should be "test;3"
|
|
test4 = 4#5#6 ; '#' only starts a comment at start of line
|
|
#test5 = 567 ; entire line commented
|
|
# test6 = 678 ; entire line commented, except in MULTILINE mode
|
|
test7 = ; blank value, except if inline comments disabled
|
|
test8 =; not a comment, needs whitespace before ';'
|
|
|
|
[colon_tests]
|
|
Content-Type: text/html
|
|
foo:bar
|
|
adams : 42
|
|
funny1 : with = equals
|
|
funny2 = with : colons
|
|
funny3 = two = equals
|
|
funny4 : two : colons
|