https://github.com/sagittaracc/tsml
The Simplest Markup Language
https://github.com/sagittaracc/tsml
Last synced: about 2 months ago
JSON representation
The Simplest Markup Language
- Host: GitHub
- URL: https://github.com/sagittaracc/tsml
- Owner: sagittaracc
- License: mit
- Created: 2022-06-01T06:54:32.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-29T10:59:53.000Z (almost 3 years ago)
- Last Synced: 2025-03-06T11:08:01.276Z (3 months ago)
- Language: PHP
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TSML
The Simplest Markup Language## Формат
```
Root
Item1 Value1
Item2
SubItem21 Value1, Value2, Value3
SubItem22
SubSubItem221 Value1
SubSubItem222 Value2
Item3
Item4
SubItem41 Value1, Value2, Value3
SubItem42 1.2
SubItem43 true
SubItem44 false
Item5
SubItem51 string1, string2
```## Использование
```php
use sagittaracc\TSML;TSML::parse();
[
'Root' => [
'Item1' => 'Value1',
'Item2' => [
'SubItem21' => ['Value1', 'Value2', 'Value3'],
'SubItem22' => [
'SubSubItem221' => 'Value1',
'SubSubItem222' => 'Value2',
],
],
'Item3' => [],
'Item4' => [
'SubItem41' => ['Value1', 'Value2', 'Value3'],
'SubItem42' => 1.2,
'SubItem43' => true,
'SubItem44' => false,
],
'Item5' => [
'SubItem51' => ['string1', 'string2'],
],
]
]
```