Add Pygments syntax highlighting info to *Message formatting* modal.

This commit is contained in:
Cynthia Lin 2017-03-18 20:30:18 -07:00 committed by Tim Abbott
parent 8241f7b40b
commit 037eca4d64
1 changed files with 5 additions and 2 deletions

View File

@ -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>&gt; Quoted</td>