diff --git a/.vscode/launch.json b/.vscode/launch.json index 056f6c8..32823fb 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -9,7 +9,7 @@ "runtimeExecutable": "${execPath}", "args": [ "--extensionDevelopmentPath=${workspaceFolder}/src/web/vscode-extension", - "${workspaceFolder}/src/web/vscode-extension/examples" + "${workspaceFolder}/src/web/notebook/examples" ], "outFiles": ["${workspaceFolder}/src/web/vscode-extension/dist/*.js"] }, @@ -22,7 +22,7 @@ "args": [ "--extensionDevelopmentPath=${workspaceFolder}/src/web/vscode-extension", "--extensionDevelopmentKind=web", - "${workspaceFolder}/src/web/vscode-extension/examples" + "${workspaceFolder}/src/web/notebook/examples" ], "outFiles": ["${workspaceFolder}/src/web/vscode-extension/dist/*.js"] } diff --git a/README.md b/README.md index 049a1c6..e8cf00d 100644 --- a/README.md +++ b/README.md @@ -155,13 +155,16 @@ forth.interpret(` `); ``` -## Visual Studio Code Notebooks +## Notebooks The [WAForth Visual Studio Code Extension](https://marketplace.visualstudio.com/items?itemName=remko.waforth-vscode-extension) adds support for interactive Forth notebooks powered by WAForth. You can execute both text-based Forth code, as well as [Thurtle](https://mko.re/thurtle/) graphics. Because it is powered by WebAssembly, this extension works both in the desktop version of Visual Studio Code and in [the browser version of Visual Studio Code](https://code.visualstudio.com/docs/editor/vscode-web) (e.g. https://github.dev, https://vscode.dev). +You can also convert the notebook into a lightweight self-contained page using [`wafnb2html`](https://github.com/remko/waforth/tree/master/src/web/notebook). +An example can be seen [here](https://mko.re/wafnb/drawing-with-forth). +