From a9d7dbda4594de134a4a3bed82a42dd59e3e1bdd Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Thu, 23 Oct 2014 22:57:26 +0200 Subject: [PATCH] Syntax highlight API stuff --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 6d0b707..fec26fc 100644 --- a/README.md +++ b/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