Add syntax declaration to code block in README.md

pull/1/head
John Long 12 years ago
parent ad507ed46c
commit 9ef8e72f3e
  1. 2
      README.md

@ -19,6 +19,7 @@ Features
Example Example
------- -------
```php
// Modbus master UDP // Modbus master UDP
$modbus = new ModbusMaster("192.168.1.1", "UDP"); $modbus = new ModbusMaster("192.168.1.1", "UDP");
// Read multiple registers // Read multiple registers
@ -33,3 +34,4 @@ Example
} }
// Print data in string format // Print data in string format
echo PhpType::bytes2string($recData); echo PhpType::bytes2string($recData);
```

Loading…
Cancel
Save