On this page ▾
Running code
{monaco-run} is an editor with a Run result below it.
```ts {monaco-run} {autorun:false, showOutputAt:'+1', height:'auto'}
console.log('runs on a click and the result appears')
```
autorunistrue,falseor'once'.showOutputAt:'+1'shows the output after a click.- The code runs in a sandboxed frame with no access to the slides, and stops after 5 seconds.
- TypeScript is turned into JavaScript for you.
importis not supported.
To run another language, a setup/code-runners.ts file maps a language id to a function. See Setup hooks.