Skip to content

Commit

Permalink
Add <pre> tags to code
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Arcieri committed Aug 23, 2009
1 parent f9dd4b7 commit b799be2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.textile
Expand Up @@ -11,8 +11,8 @@ applications.

You can include Rev in your programs with:

<code>require 'rubygems'
require 'rev'</code>
<code><pre>require 'rubygems'
require 'rev'</pre></code>

For more information, consult the RubyForge page:

Expand Down Expand Up @@ -94,7 +94,7 @@ h2. Example Program

Below is an example of how to write an echo server:

<code>require 'rev'
<code><pre>require 'rev'
HOST = 'localhost'
PORT = 4321

Expand All @@ -116,7 +116,7 @@ Below is an example of how to write an echo server:
server.attach(Rev::Loop.default)

puts "Echo server listening on #{HOST}:#{PORT}"
Rev::Loop.default.run</code>
Rev::Loop.default.run</pre></code>

Here a new observer type (EchoServerConnection) is made by subclassing an
existing one and adding new implementations to existing event handlers.
Expand Down

0 comments on commit b799be2

Please sign in to comment.