Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

More formatting.

  • Loading branch information...
commit c23d824876740d29ae6daa430575e1a7a853737b 1 parent 29bf849
Thibaut Barrère authored April 17, 2010

Showing 1 changed file with 5 additions and 10 deletions. Show diff stats Hide diff stats

  1. 15  README.textile
15  README.textile
Source Rendered
@@ -8,8 +8,7 @@ Here are quick starters (some of these are under samples/):
8 8
 
9 9
 h2. Windows Forms
10 10
 
11  
-<pre><code>
12  
-form = Magic.build do
  11
+<pre><code>form = Magic.build do
13 12
   @menu = main_menu do
14 13
     menu_item("&File") do
15 14
       menu_item("&New")
@@ -31,8 +30,7 @@ Application.Run(form)
31 30
 
32 31
 h2. WPF
33 32
 
34  
-<pre><code>
35  
-window = Magic.build do
  33
+<pre><code>window = Magic.build do
36 34
   window(:width => 600, :height => 480, :title => 'Hello world!') do
37 35
     stack_panel(:margin => thickness(30)) do
38 36
       button(:content => 'Click me!', :font_size => 22).click do
@@ -50,8 +48,7 @@ h2. Silverlight
50 48
 
51 49
 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:
52 50
 
53  
-<pre><code>
54  
-require "silverlight"
  51
+<pre><code>require "silverlight"
55 52
 require "magic-compressed"
56 53
 
57 54
 class App < SilverlightApplication
@@ -74,8 +71,7 @@ h2. Swing
74 71
 
75 72
 Preliminary support for Swing has just been added. Here's an example:
76 73
 
77  
-<pre><code>
78  
-import 'javax.swing.JFrame'
  74
+<pre><code>import 'javax.swing.JFrame'
79 75
 import 'javax.swing.JButton'
80 76
 
81 77
 frame = Magic.build do
@@ -120,8 +116,7 @@ Magic comes with its set of specs (based on MSpec). You'll currently have to twe
120 116
 
121 117
 Then you can run (either on Windows or Mac OS):
122 118
 
123  
-<pre><code>
124  
-  rake spec
  119
+<pre><code>rake spec
125 120
 </code></pre>
126 121
 
127 122
 to see all the (m)specs running.

0 notes on commit c23d824

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