mirror of https://github.com/zulip/zulip.git
Add Pygments syntax highlighting info to *Message formatting* modal.
This commit is contained in:
parent
8241f7b40b
commit
037eca4d64
|
@ -68,7 +68,7 @@ def zulip():
|
|||
print "Zulip"</pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="preserve_spaces">``` .py
|
||||
<td class="preserve_spaces">```python
|
||||
def zulip():
|
||||
print "Zulip"
|
||||
```</td>
|
||||
|
@ -78,7 +78,10 @@ def zulip():
|
|||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">{% trans %}You can also make a code block by indenting each line with 4 spaces.{% endtrans %}</td>
|
||||
<td colspan="2">{% trans %}To add syntax highlighting to a multi-line code block,
|
||||
add the language's <b>first</b> <a target="_blank" href="http://pygments.org/docs/lexers/">Pygments short name</a>
|
||||
after the first set of back-ticks.
|
||||
You can also make a code block by indenting each line with 4 spaces.{% endtrans %}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>> Quoted</td>
|
||||
|
|
Loading…
Reference in New Issue