From ff789530b7d4b8b202e7d51ad04f3ff3c2db0a46 Mon Sep 17 00:00:00 2001 From: Aaron Steele Date: Tue, 22 Nov 2011 19:19:00 -0800 Subject: [PATCH] Add Clojure/JavaScript syntax highlighting to code example. --- README.md | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index e321b2b..d637f72 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ It also rides on the wonderful [ClojureScript](https://github.com/clojure/clojur Here's a side-by-side of JavaScript and ClojureScript. The "Hello World" of Google Maps in JavaScript looks like this: +```javascript var map; function initialize() { @@ -29,9 +30,11 @@ Here's a side-by-side of JavaScript and ClojureScript. The "Hello World" of Goog } google.maps.event.addDomListener(window, 'load', initialize); +``` The "Hello World" of Google Maps in ClojureScript looks like this: - + +```clojure (def *map* nil) (def map-opts @@ -49,7 +52,7 @@ The "Hello World" of Google Maps in ClojureScript looks like this: (events/listen js/window "load" map-load) - +``` # Let's get started @@ -102,14 +105,6 @@ Use two terminals. In the first: lein ring server ``` -```clojure - (def x 2) -``` - -```clj - (def x 2) -``` - And in the second: ```bash