Skip to content

Commit 2dfd042

Browse files
committed
README: Fix markdown display of code
Change-Id: Ibc194d9e198267d4851e32b83ffbd7a9cb7d2e97
1 parent 7ba5c7a commit 2dfd042

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@ Additional documentation about the library can be found on
1616
Usage
1717
-----
1818

19-
// Reading a CDB file
20-
$cdb = Cdb\Reader::open( 'db.cdb' );
21-
$foo = $cdb->get( 'somekey' );
22-
23-
// Writing to a CDB file
24-
$cdb = Cdb\Writer::open( 'anotherdb.cdb' );
25-
$cdb->set( 'somekey', $foo );
19+
```php
20+
// Reading a CDB file
21+
$cdb = Cdb\Reader::open( 'db.cdb' );
22+
$foo = $cdb->get( 'somekey' );
23+
24+
// Writing to a CDB file
25+
$cdb = Cdb\Writer::open( 'anotherdb.cdb' );
26+
$cdb->set( 'somekey', $foo );
27+
```
2628

2729
// Using the CLI
2830
$ cdb ./myfile.cdb [get|list|match] <parameter>

0 commit comments

Comments
 (0)