kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Clarify code block docs
rodzic
29a8b2e718
commit
2bc9a7b115
|
@ -1,5 +1,5 @@
|
||||||
created: 20131205160047557
|
created: 20131205160047557
|
||||||
modified: 20140214190843724
|
modified: 20141024134125489
|
||||||
tags: WikiText
|
tags: WikiText
|
||||||
title: Code Blocks in WikiText
|
title: Code Blocks in WikiText
|
||||||
type: text/vnd.tiddlywiki
|
type: text/vnd.tiddlywiki
|
||||||
|
@ -13,13 +13,32 @@ This will be monospaced
|
||||||
```
|
```
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
The three backticks need to be at the start of the line and immediately followed by a newline, otherwise they won't be interpreted correctly.
|
|
||||||
|
|
||||||
Renders as:
|
Renders as:
|
||||||
|
|
||||||
```
|
```
|
||||||
This will be monospaced
|
This will be monospaced
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To be interpreted correctly, the three backticks need to be at the start of the line and immediately followed by a line-break.
|
||||||
|
|
||||||
|
Be aware that any preceding paragraph content should be properly terminated with a double line break, too. So, this example is wrong:
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
This is an ordinary paragraph
|
||||||
|
```
|
||||||
|
This will be monospaced
|
||||||
|
```
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
The correct version is:
|
||||||
|
|
||||||
|
<pre>
|
||||||
|
This is an ordinary paragraph
|
||||||
|
|
||||||
|
```
|
||||||
|
This will be monospaced
|
||||||
|
```
|
||||||
|
</pre>
|
||||||
|
|
||||||
Note that some keyboard layouts treat the backtick as a [[dead key|http://en.wikipedia.org/wiki/Dead_key]], making it hard to type. The trick is to type three backticks followed by a space. Alternatively, type all six backticks in one go, then a space, and then move the cursor back three characters to type or paste the content.
|
Note that some keyboard layouts treat the backtick as a [[dead key|http://en.wikipedia.org/wiki/Dead_key]], making it hard to type. The trick is to type three backticks followed by a space. Alternatively, type all six backticks in one go, then a space, and then move the cursor back three characters to type or paste the content.
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue