Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

More formatting.

  • Loading branch information...
commit c23d824876740d29ae6daa430575e1a7a853737b 1 parent 29bf849
@thbar authored
Showing with 5 additions and 10 deletions.
  1. +5 −10 README.textile
15 README.textile
@@ -8,8 +8,7 @@ Here are quick starters (some of these are under samples/):
h2. Windows Forms
-form = do
+<pre><code>form = do
@menu = main_menu do
menu_item("&File") do
@@ -31,8 +30,7 @@ Application.Run(form)
h2. WPF
-window = do
+<pre><code>window = do
window(:width => 600, :height => 480, :title => 'Hello world!') do
stack_panel(:margin => thickness(30)) do
button(:content => 'Click me!', :font_size => 22).click do
@@ -50,8 +48,7 @@ h2. Silverlight
You'll need to run "rake compress" to create magic-compressed.rb, which gathers all the magic files into one. Once you have magic-compressed.rb, you can use it like that:
-require "silverlight"
+<pre><code>require "silverlight"
require "magic-compressed"
class App < SilverlightApplication
@@ -74,8 +71,7 @@ h2. Swing
Preliminary support for Swing has just been added. Here's an example:
-import 'javax.swing.JFrame'
+<pre><code>import 'javax.swing.JFrame'
import 'javax.swing.JButton'
frame = do
@@ -120,8 +116,7 @@ Magic comes with its set of specs (based on MSpec). You'll currently have to twe
Then you can run (either on Windows or Mac OS):
- rake spec
+<pre><code>rake spec
to see all the (m)specs running.

0 comments on commit c23d824

Please sign in to comment.
Something went wrong with that request. Please try again.