You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Chapters/01-Pharo/Pharo.md
+20-20Lines changed: 20 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ In this book, we use Seaside 3.0.4, included in the _One Click Image_ which
16
16
you can find on the Seaside website at [http://www.seaside.st/download](http://www.seaside.st/download). The
17
17
_One Click Image_ is a bundle of everything you need to run Seaside.
18
18
19
-

19
+

20
20
21
21
You should see the Seaside development environment open in
22
22
a single window on your desktop similar to the one presented in Figure *@fig:seasileDesk@*.
@@ -36,15 +36,15 @@ pointing your web browser to [http://localhost:8080/](http://localhost:8080/). Y
36
36
like Figure *@fig:seasideServer@*. If you don’t see this page, it is possible
37
37
that port 8080 is already in use by another application on your computer.
38
38
39
-

39
+

40
40
41
41
**Changing the Seaside port number.**
42
42
If you did not see Figure *@fig:seasideServer@*, you will need to try modifying
43
43
the workspace to restart the Comanche web server on a different port number
44
44
\(like 8081\). The script *@scr:startServer@* asks the server to stop serving and start
45
45
serving on port 8081.
46
46
47
-
```language=smalltalk&label=scr:startServer&caption=Stop the server and start a new one.
47
+
```language=smalltalk&anchor=scr:startServer&caption=Stop the server and start a new one.
48
48
WAKom stop.
49
49
WAKom startOn: 8081.
50
50
```
@@ -89,7 +89,7 @@ _component_ refers to any class which inherits from the class `WAComponent`
89
89
To start creating your class, click on the `WebCounter` package you just
90
90
created. The "class creation template" will appear in the source pane of the browser. Edit this template so that it looks as in the script *@scr:pharoClassTemplate@*
91
91
92
-
```language=smalltalk&caption=Pharo class template for the `Web Counter`&label=scr:pharoClassTemplate
92
+
```language=smalltalk&caption=Pharo class template for the `Web Counter`&anchor=scr:pharoClassTemplate
93
93
WAComponent << #WebCounter
94
94
slots: { #count };
95
95
package: 'WebCounter'
@@ -109,14 +109,14 @@ pane to bring up the context menu, and select the menu item _Accept \(s\)_ as
109
109
shown in Figure *@fig:createdClass@*. Accept in Pharo jargon means
110
110
compile.
111
111
112
-

112
+

113
113
114
114
Once you have accepted, your browser should look similar to the one shown in
115
115
Figure *@fig:createdClass@*. The browser now shows the class that you have
116
116
created in the class pane. Now we are ready to define some behaviour for our
117
117
component.
118
118
119
-

119
+

120
120
121
121
### Defining Basic Methods
122
122
@@ -134,7 +134,7 @@ by using the message `new`, which will create the new instance and then send
0 commit comments