Przeglądaj źródła

Syntax highlight API stuff

Stefan Siegl 10 lat temu
rodzic
commit
a9d7dbda45
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      README.md

+ 4 - 0
README.md

@@ -77,6 +77,7 @@ sudo make install
 PHP API
 =======
 
+```php
     class V8Js
     {
         /* Constants */
@@ -149,10 +150,12 @@ PHP API
     final class V8JsMemoryLimitException extends Exception
     {
     }
+```
 
 Javascript API
 ==============
 
+```js
     // Print a string.
     print(string);
 
@@ -165,6 +168,7 @@ Javascript API
     // CommonJS Module support to require external code.
     // This makes use of the PHP module loader provided via V8Js::setModuleLoader (see PHP API above).
     require("path/to/module");
+```
 
 The JavaScript `in` operator, when applied to a wrapped PHP object,
 works the same as the PHP `isset()` function.  Similarly, when applied