Skip to content

Commit

Permalink
add syntax highlighting to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
phlipper committed Oct 3, 2011
1 parent 301e1c6 commit e597098
Showing 1 changed file with 21 additions and 17 deletions.
38 changes: 21 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,31 @@

KidsRuby (http://kidsruby.com) is a Ruby programming environment meant for kids. It is heavily influenced by Hackety Hack (http://hackety-hack.com).

In fact you can run many of the same code samples from Hackety Hack in KidsRuby. For example:
In fact, you can run many of the same code samples from Hackety Hack in KidsRuby. For example:

color = ask("what is your favorite color")
if color == "blue"
alert("you picked blue")
end
``` ruby
color = ask("what is your favorite color")
if color == "blue"
alert("you picked blue")
end
```

You can also use the Turtle, just like Hackety-Hack does

Turtle.start do
background yellow
pencolor brown
pensize 2
goto 30, 200
setheading 180
1000.times do
forward 20
turnleft rand(10)
backward 10
end
end
``` ruby
Turtle.start do
background yellow
pencolor brown
pensize 2
goto 30, 200
setheading 180
1000.times do
forward 20
turnleft rand(10)
backward 10
end
end
```

## Design Goals
* Simple single file editor
Expand Down

0 comments on commit e597098

Please sign in to comment.