mirror of
https://github.com/ToyB-Chan/mini-file-format.git
synced 2026-05-14 10:21:16 +02:00
Update README.md
This commit is contained in:
17
README.md
17
README.md
@@ -32,6 +32,7 @@ The format supports the following data types:
|
|||||||
- `\"` for a double quote (`"`)
|
- `\"` for a double quote (`"`)
|
||||||
- `\n` for a newline
|
- `\n` for a newline
|
||||||
- `\t` for a tab
|
- `\t` for a tab
|
||||||
|
- `\\` for a backslash
|
||||||
- Example: `string = "Line 1\nLine 2"`
|
- Example: `string = "Line 1\nLine 2"`
|
||||||
- Example: `string = "Tab\tSeparated"`
|
- Example: `string = "Tab\tSeparated"`
|
||||||
- Example: `string = "My \"escaped\" String"`
|
- Example: `string = "My \"escaped\" String"`
|
||||||
@@ -68,19 +69,19 @@ The format supports the following data types:
|
|||||||
|
|
||||||
## Example Structure
|
## Example Structure
|
||||||
```text
|
```text
|
||||||
[Section]
|
[MySection]
|
||||||
integer = 5
|
myInteger = 5
|
||||||
string = "My String"
|
myString = "My String"
|
||||||
array = [5, 6, 10]
|
myArray = [5, 6, 10]
|
||||||
myBool = false
|
myBool = false
|
||||||
|
|
||||||
# A comment
|
# A comment
|
||||||
[Section.Subsection]
|
[MySection.MySubsection]
|
||||||
float = 1.065f
|
myFloat = 1.065f
|
||||||
float2 = 1e18f
|
myFloat2 = 1e18f
|
||||||
hexValue = 0xFA8
|
hexValue = 0xFA8
|
||||||
|
|
||||||
[Section.Subsection.Subsection]
|
[MySection.MySubsection.AnotherSubsection]
|
||||||
binValue = 0b0010010
|
binValue = 0b0010010
|
||||||
anotherDec = 1_000_375
|
anotherDec = 1_000_375
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user