Skip to content

Commit

Permalink
Add Clojure/JavaScript syntax highlighting to code example.
Browse files Browse the repository at this point in the history
  • Loading branch information
eightysteele committed Nov 23, 2011
1 parent dc82fdd commit ff78953
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions README.md
Expand Up @@ -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() {
Expand All @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ff78953

Please sign in to comment.