From f0e43816b1a85e0f6dc530b22f4949b366b0ae96 Mon Sep 17 00:00:00 2001 From: Amila Welihinda Date: Mon, 27 Jun 2016 09:56:15 -0700 Subject: [PATCH] Added syntax highlighting for readme --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 48901ac..246970a 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ See the design document ### Example #### Master source - +```js var sys = require('sys'); var Worker = require('webworker'); @@ -20,9 +20,9 @@ See the design document }; w.postMessage({ foo : 'bar' }); - +``` #### Worker source - +```js onmessage = function(e) { postMessage({ test : 'this is a test' }); }; @@ -30,7 +30,7 @@ See the design document onclose = function() { sys.debug('Worker shuttting down.'); }; - +``` ### API Supported API methods are