From 63d069e1380922ca8fd5e23b19ea1855bbd54603 Mon Sep 17 00:00:00 2001 From: Dan Dascalescu Date: Sat, 7 Feb 2015 11:45:03 -0800 Subject: [PATCH] Syntax highlight for the reactive-dict README example --- packages/reactive-dict/README.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/packages/reactive-dict/README.md b/packages/reactive-dict/README.md index d16aacd111b..0f5af9b8e97 100644 --- a/packages/reactive-dict/README.md +++ b/packages/reactive-dict/README.md @@ -11,13 +11,14 @@ If you provide a name to its constructor, its contents will be saved across Hot Code Push client code updates. Example usage: -``` -> var dict = new ReactiveDict('myDict'); -> dict.set("weather", "cloudy"); -> Tracker.autorun(function () { console.log("now " + dict.get("weather")); }); -now cloudy -> dict.set("weather", "sunny"); -now sunny + +```js +var dict = new ReactiveDict('myDict'); +dict.set("weather", "cloudy"); +Tracker.autorun(function () { console.log("now " + dict.get("weather")); }); +// now cloudy +dict.set("weather", "sunny"); +// now sunny ``` For more information, see the [Tracker project