@@ -17,10 +17,10 @@ Note that WASI-based playgrounds (`engine` = `wasi` in the examples below) requi
1717Executes the code using the [ AsyncFunction] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AsyncFunction ) .
1818
1919``` html
20- <pre >
20+ <pre >< code >
2121const msg = "Hello, World!"
2222console.log(msg)
23- </pre >
23+ </code ></ pre >
2424
2525<codapi-snippet engine =" browser" sandbox =" javascript" editor =" basic" ></codapi-snippet >
2626```
@@ -32,14 +32,14 @@ console.log(msg)
3232Executes the code using the [ Fetch API] ( https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API ) .
3333
3434``` html
35- <pre >
35+ <pre >< code >
3636POST https://httpbingo.org/dump/request
3737content-type: application/json
3838
3939{
4040 "message": "hello"
4141}
42- </pre >
42+ </code ></ pre >
4343
4444<codapi-snippet engine =" browser" sandbox =" fetch" editor =" basic" ></codapi-snippet >
4545```
@@ -51,10 +51,10 @@ content-type: application/json
5151Executes the code using the [ Lua WASI runtime] ( https://github.com/nalgeon/lua-wasi ) (330 KB).
5252
5353``` html
54- <pre >
54+ <pre >< code >
5555local msg = "Hello, World!"
5656print(msg)
57- </pre >
57+ </code ></ pre >
5858
5959<codapi-snippet engine =" wasi" sandbox =" lua" editor =" basic" ></codapi-snippet >
6060```
@@ -66,12 +66,12 @@ print(msg)
6666Executes the code using the [ PHP WASI runtime] ( https://github.com/nalgeon/php-wasi ) (13.2 MB).
6767
6868``` html
69- <pre >
69+ <pre >< code >
7070< ; ?php
7171$msg = "Hello, World!";
7272echo $msg;
7373?> ;
74- </pre >
74+ </code ></ pre >
7575
7676<codapi-snippet engine =" wasi" sandbox =" php" editor =" basic" ></codapi-snippet >
7777```
@@ -83,11 +83,11 @@ echo $msg;
8383Executes the code using the [ PGlite runtime] ( https://github.com/electric-sql/pglite ) (12 MB).
8484
8585``` html
86- <pre >
86+ <pre >< code >
8787create table data(message text);
8888insert into data values ('Hello, World!');
8989select * from data;
90- </pre >
90+ </code ></ pre >
9191
9292<codapi-snippet engine =" pglite" sandbox =" postgres" editor =" basic" output-mode =" table" >
9393</codapi-snippet >
@@ -111,10 +111,10 @@ Note that this playground requires additional scripts besides the usual `snippet
111111Executes the code using the [ Python WASI runtime] ( https://github.com/nalgeon/python-wasi ) (26.3 MB).
112112
113113``` html
114- <pre >
114+ <pre >< code >
115115msg = "Hello, World!"
116116print(msg)
117- </pre >
117+ </code ></ pre >
118118
119119<codapi-snippet engine =" wasi" sandbox =" python" editor =" basic" ></codapi-snippet >
120120```
@@ -126,10 +126,10 @@ print(msg)
126126Executes the code using the [ Ruby WASI runtime] ( https://github.com/nalgeon/ruby-wasi ) (24.5 MB).
127127
128128``` html
129- <pre >
129+ <pre >< code >
130130msg = "Hello, World!"
131131puts msg
132- </pre >
132+ </code ></ pre >
133133
134134<codapi-snippet engine =" wasi" sandbox =" ruby" editor =" basic" ></codapi-snippet >
135135```
@@ -141,9 +141,9 @@ puts msg
141141Executes the code using the [ SQLite WASI runtime] ( https://github.com/nalgeon/sqlite-wasi ) (2.1 MB).
142142
143143``` html
144- <pre >
144+ <pre >< code >
145145select "Hello, World!" as message;
146- </pre >
146+ </code ></ pre >
147147
148148<codapi-snippet engine =" wasi" sandbox =" sqlite" editor =" basic" ></codapi-snippet >
149149```
0 commit comments