@@ -123,7 +123,7 @@ The earlier lines in `make.m` simply configure the build process which is captur
123
123
Ensure that the folder ` stl ` is in your MATLAB path.
124
124
125
125
The result is an executable ` user ` in the current directory which we can run
126
- ``` shellsession
126
+ ```
127
127
% ./user bob alice
128
128
hello world
129
129
got 3 arguments
@@ -227,7 +227,7 @@ The switch statement is used to select the code according to the URL given, and
227
227
228
228
![ page1] ( https://github.com/petercorke/simple-threads-coder/blob/master/doc/page1.png )
229
229
230
- ``` shell
230
+ ```
231
231
2018-09-16 15:54:28.635937 [user] user program starts
232
232
2018-09-16 15:54:28.636843 [user] web server starting on port 8080
233
233
2018-09-16 15:54:33.170370 [user] web: GET request using HTTP/1.1 for URL /page1
@@ -243,7 +243,7 @@ Note also, that log messages from the web server function are listed as coming f
243
243
244
244
![ page2] ( https://github.com/petercorke/simple-threads-coder/blob/master/doc/page2.png )
245
245
246
- ``` shell
246
+ ```
247
247
2018-09-16 15:39:12.816790 [WEB] web: GET request using HTTP/1.1 for URL /page2
248
248
2018-09-16 15:39:12.816822 [WEB] in /page2
249
249
2018-09-16 15:39:12.816827 [WEB] web_setvalue: a 1
@@ -266,7 +266,7 @@ and the values of the fields of the struct `vals` are substituted for the corres
266
266
267
267
![ duck] ( https://github.com/petercorke/simple-threads-coder/blob/master/doc/duck.png )
268
268
269
- ``` shell
269
+ ```
270
270
2018-09-16 15:36:08.881139 [WEB] web: GET request using HTTP/1.1 for URL /duck
271
271
2018-09-16 15:36:08.881159 [WEB] web_file: duck.jpg, type image/jpeg
272
272
2018-09-16 15:36:08.881208 [WEB] file is 83234 bytes
@@ -276,7 +276,7 @@ The local file `duck.png` is sent to the browser as an `image/jpeg` filetype.
276
276
277
277
![ post] ( https://github.com/petercorke/simple-threads-coder/blob/master/doc/post.png )
278
278
279
- ``` shell
279
+ ```
280
280
2018-09-16 16:32:00.035029 [user] web: GET request using HTTP/1.1 for URL /input
281
281
2018-09-16 16:32:00.035101 [WEB] input called
282
282
2018-09-16 16:32:00.035109 [WEB] GET request
0 commit comments