Skip to content

Commit

Permalink
Use Clojure syntax highlighting in the readme file.
Browse files Browse the repository at this point in the history
  • Loading branch information
arturdryomov committed Dec 16, 2012
1 parent 0ffe6f9 commit a8a9e93
Showing 1 changed file with 18 additions and 14 deletions.
32 changes: 18 additions & 14 deletions README.md
Expand Up @@ -44,25 +44,29 @@ Install `lein` as described and then:

Add Seesaw to `project.clj`

(defproject hello-seesaw "1.0.0-SNAPSHOT"
:description "FIXME: write"
:dependencies [[org.clojure/clojure "1.3.0"]
[seesaw "x.y.z"]])
```clojure
(defproject hello-seesaw "1.0.0-SNAPSHOT"
:description "FIXME: write"
:dependencies [[org.clojure/clojure "1.3.0"]
[seesaw "x.y.z"]])
```

_Replace the Seesaw version with whatever the latest version tag is. See below!_

Now edit the generated `src/hello_seesaw/core.clj` file:

(ns hello-seesaw.core
(:use seesaw.core))

(defn -main [& args]
(invoke-later
(-> (frame :title "Hello",
:content "Hello, Seesaw",
:on-close :exit)
pack!
show!)))
```clojure
(ns hello-seesaw.core
(:use seesaw.core))

(defn -main [& args]
(invoke-later
(-> (frame :title "Hello",
:content "Hello, Seesaw",
:on-close :exit)
pack!
show!)))
```

Now run it:

Expand Down

0 comments on commit a8a9e93

Please sign in to comment.