This commit is contained in:
Shogo Takata 2022-03-26 16:11:41 +09:00
parent 0dca4d9b9f
commit 89e37a7751
No known key found for this signature in database
GPG Key ID: 93C92BE128D78ED2
1 changed files with 2 additions and 0 deletions

View File

@ -207,6 +207,7 @@ editable = false # allows editing the source code
copyable = true # include the copy button for copying code snippets
copy-js = true # includes the JavaScript for the code editor
line-numbers = false # displays line numbers for editable code
runnable = true # displays a run button for rust code
```
- **editable:** Allow editing the source code. Defaults to `false`.
@ -214,6 +215,7 @@ line-numbers = false # displays line numbers for editable code
- **copy-js:** Copy JavaScript files for the editor to the output directory.
Defaults to `true`.
- **line-numbers** Display line numbers on editable sections of code. Requires both `editable` and `copy-js` to be `true`. Defaults to `false`.
- **runnable** Displays a run button for rust code snippets. Changing this to `false` will disable the run in playground feature globally. Defaults to `true`.
[Ace]: https://ace.c9.io/