Changeset View
Changeset View
Standalone View
Standalone View
src/docs/user/userguide/remarkup.diviner
Show First 20 Lines • Show All 190 Lines • ▼ Show 20 Lines | ``` | ||||
- [ ] Zest 35 lemons. | - [ ] Zest 35 lemons. | ||||
``` | ``` | ||||
When rendered, this produces: | When rendered, this produces: | ||||
- [X] Preheat oven to 450 degrees. | - [X] Preheat oven to 450 degrees. | ||||
- [ ] Zest 35 lemons. | - [ ] Zest 35 lemons. | ||||
Code Blocks | |||||
=========== | |||||
Make **code blocks** by indenting two spaces: | Make **code blocks** by indenting two spaces: | ||||
f(x, y); | f(x, y); | ||||
You can also use three backticks to enclose the code block: | You can also use three backticks to enclose the code block: | ||||
```f(x, y); | ```f(x, y); | ||||
g(f);``` | g(f);``` | ||||
You can specify a language for syntax highlighting with `lang=xxx`: | You can specify a language for syntax highlighting with `lang=xxx`: | ||||
lang=text | lang=text | ||||
lang=html | lang=html | ||||
<a href="#">...</a> | <a href="#">...</a> | ||||
When using fenced code blocks (triple backticks) you can simply append the | |||||
language right after the backticks, like this: ##```html## | |||||
This will highlight the block using a highlighter for that language, if one is | This will highlight the block using a highlighter for that language, if one is | ||||
available (in most cases, this means you need to configure Pygments): | available (in most cases, this means you need to configure Pygments): | ||||
lang=html | lang=html | ||||
<a href="#">...</a> | <a href="#">...</a> | ||||
You can also use a `COUNTEREXAMPLE` header to show that a block of code is | You can also use a `COUNTEREXAMPLE` header to show that a block of code is | ||||
bad and shouldn't be copied: | bad and shouldn't be copied: | ||||
▲ Show 20 Lines • Show All 517 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0