This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Update README.md

  • Loading branch information...
nashby committed Mar 23, 2012
1 parent 7e41617 commit 53a1ab9b6bbce2fb97e4519f659a7c56b8399fde
Showing with 14 additions and 12 deletions.
  1. +14 −12 README.md
View
@@ -19,19 +19,21 @@ Everybody loved Shoes. Many apps were made, and put into [The Shoebox](http://th
Here's a little Shoes app. It's a stopwatch!
- Shoes.app :height => 150, :width => 250 do
- background rgb(240, 250, 208)
- stack :margin => 10 do
- button "Start" do
- @time = Time.now
- @label.replace "Stop watch started at #@time"
- end
- button "Stop" do
- @label.replace "Stopped, ", strong("#{Time.now - @time}"), " seconds elapsed."
- end
- @label = para "Press ", strong("start"), " to begin timing."
- end
+```ruby
+Shoes.app :height => 150, :width => 250 do
+ background rgb(240, 250, 208)
+ stack :margin => 10 do
+ button "Start" do
+ @time = Time.now
+ @label.replace "Stop watch started at #@time"
end
+ button "Stop" do
+ @label.replace "Stopped, ", strong("#{Time.now - @time}"), " seconds elapsed."
+ end
+ @label = para "Press ", strong("start"), " to begin timing."
+ end
+end
+```
Here's what it looks like:

0 comments on commit 53a1ab9

Please sign in to comment.