aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 8 insertions, 2 deletions
diff --git a/README.md b/README.md
index 095114d..9941ca6 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,8 @@ License: GPLv2
Example of correct NYAML file (test.nyaml):
------
-node 1:
+node 1
+<pre>
<code>
#this is node 1
value 1
@@ -20,16 +21,20 @@ node 1:
key1: [elements, [of,array]]
key2: "[this, is, not, array]"
</code>
+</pre>
test.php:
------
+<pre>
<code>
<?php
include("nyaml.php");
$nyaml = new nyaml();
print_r($nyaml->file("test.nyaml"));
</code>
+</pre>
Result:
------
+<pre>
<code>
Array
(
@@ -57,4 +62,5 @@ Array
)
)
)
-</code> \ No newline at end of file
+</code>
+</pre> \ No newline at end of file