2018-09-19 17:39:02 +02:00
|
|
|
# Format your messages
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2017-01-07 03:32:36 +01:00
|
|
|
Zulip uses a variant of
|
2018-09-19 17:39:02 +02:00
|
|
|
[GitHub Flavored Markdown](https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet)
|
|
|
|
to allow you to easily format your messages.
|
|
|
|
|
|
|
|
* [Emphasis](#emphasis)
|
|
|
|
* [Lists](#lists)
|
|
|
|
* [Links and images](#links)
|
|
|
|
* [Code and TeX](#code)
|
|
|
|
* [Quotes](#quotes)
|
|
|
|
* [Emoji and emoticons](#emoji-and-emoticons)
|
|
|
|
* [Mentions](#mentions)
|
|
|
|
* [Status messages](#status-messages)
|
|
|
|
* [Tables](#tables)
|
|
|
|
* [Paragraphs and lines](#paragraphs-and-lines)
|
2016-12-04 04:57:51 +01:00
|
|
|
|
|
|
|
## Emphasis
|
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
```
|
|
|
|
**bold**, *italic*, and ~~strikethrough~~ text
|
|
|
|
***~~All three at once~~***
|
|
|
|
```
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
![](/static/images/help/markdown-emphasis.png)
|
2016-12-04 04:57:51 +01:00
|
|
|
|
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
## Lists
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
Bulleted lists
|
|
|
|
```
|
|
|
|
* bulleted lists
|
|
|
|
* with sub-bullets too
|
|
|
|
* sub-bullets start with 2 spaces
|
|
|
|
* start sub-sub-bullets with 4 spaces
|
|
|
|
* multi
|
|
|
|
line
|
|
|
|
bullet
|
|
|
|
- dashes and
|
|
|
|
+ pluses are ok too
|
|
|
|
```
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
![](/static/images/help/markdown-bullets.png)
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
Numbered lists
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
```
|
|
|
|
1. numbered lists
|
|
|
|
1. increment automatically
|
|
|
|
1. one more
|
|
|
|
```
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
![](/static/images/help/markdown-numbered-lists.png)
|
2016-12-04 04:57:51 +01:00
|
|
|
|
|
|
|
|
|
|
|
## Links
|
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
Zulip auto-linkifies URLs and valid stream names. You can also add a
|
|
|
|
[custom linkifier](/help/add-a-custom-linkification-filter) to link
|
|
|
|
patterns like `#1234` to your ticketing system.
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
```
|
|
|
|
Auto-detected URL: zulipchat.com
|
|
|
|
Named link: [Zulip homepage](zulipchat.com)
|
|
|
|
Stream: #**announce**
|
|
|
|
Custom linkifier: #1234 (links to ticket 1234 in your ticketing system)
|
|
|
|
```
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
![](/static/images/help/markdown-links.png)
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
## Images
|
2016-12-06 00:13:06 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
See [Share and upload files](/help/share-and-upload-files) to learn more
|
|
|
|
about dropping, pasting, and attaching images.
|
2016-12-06 00:13:06 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
```
|
|
|
|
[A whale of a good time](https://your.zulip.domain/user_uploads/1/46/IPvysqXEtiTG1ZdNBrwAZODi/whale-time.png)
|
|
|
|
```
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
![](/static/images/help/markdown-image.png)
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
## Code
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
~~~
|
|
|
|
Inline: `let x = 5`
|
2017-04-08 07:54:52 +02:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
Code block:
|
|
|
|
```
|
|
|
|
def f(x):
|
|
|
|
return x+1
|
|
|
|
```
|
2018-02-03 23:31:59 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
Syntax highlighting:
|
|
|
|
```python
|
|
|
|
def fib(n):
|
|
|
|
# TODO: base case
|
|
|
|
return fib(n-1) + fib(n-2)
|
|
|
|
```
|
|
|
|
~~~
|
2018-02-03 23:31:59 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
![](/static/images/help/markdown-code.png)
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
You can also use `~~~` to start codeblocks, or just indent the code 4 or more spaces.
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
Zulip supports syntax highlighting for hundreds of languages, and a
|
|
|
|
typeahead will pop up when you start typing after the ` ``` `. If you can't
|
|
|
|
find your language, search for it [here](http://pygments.org/docs/lexers)
|
|
|
|
and try the **short names** listed for the lexers for your language.
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
## Latex
|
|
|
|
~~~
|
|
|
|
Inline: $$O(n^2)$$
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
Displayed:
|
|
|
|
```tex
|
|
|
|
\int_a^b f(t)\, dt = F(b) - F(a)
|
|
|
|
```
|
|
|
|
~~~
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
![](/static/images/help/markdown-latex.png)
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
## Quotes
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
~~~
|
|
|
|
> a multi-line
|
|
|
|
quote on two lines
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
normal text
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
```quote
|
|
|
|
A multi-paragraph
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
quote in two paragraphs
|
|
|
|
```
|
|
|
|
~~~
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
![](/static/images/help/markdown-quotes.png)
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
## Emoji and emoticons
|
2017-05-13 05:22:28 +02:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
To translate emoticons into emoji, you'll need to
|
|
|
|
[enable emoticon translations](/help/enable-emoticon-translations).
|
|
|
|
You can also [add custom emoji](/help/add-custom-emoji).
|
2017-05-13 05:22:28 +02:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
```
|
|
|
|
:octopus: :heart: :zulip: :)
|
|
|
|
```
|
2017-05-13 05:22:28 +02:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
![](/static/images/help/markdown-emoji.png)
|
2017-05-13 05:22:28 +02:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
## Mentions
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
Learn more about at-mentions [here](/help/at-mention-a-team-member).
|
|
|
|
The numbers will be added automatically by the typeahead if needed for disambiguation
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
```
|
|
|
|
Users: @**Polonius** or @**Zoe|2132** (two asterisks)
|
|
|
|
User group: @*support team* (one asterisk)
|
|
|
|
```
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
![](/static/images/help/markdown-mentions.png)
|
2017-03-21 21:46:25 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
## Status Messages
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
```
|
|
|
|
/me is away
|
|
|
|
```
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
![](/static/images/help/markdown-status.png)
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
## Tables
|
2017-03-21 21:46:25 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
The initial pipes (`|`) are optional if every entry in the first column is non-empty.
|
|
|
|
The header separators (`---`) must be at least three dashes long.
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
```
|
|
|
|
|| yes | no | maybe
|
|
|
|
|---|---|:---:|------:
|
|
|
|
| A | left-aligned | centered | right-aligned
|
|
|
|
| B | extra spaces | are | ok
|
|
|
|
| C | **bold** *italic* ~~strikethrough~~ :smile: ||
|
|
|
|
```
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
![](/static/images/help/markdown-table.png)
|
2017-03-19 04:23:27 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
## Paragraphs and lines
|
2017-03-19 04:23:27 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
```
|
|
|
|
One blank space for a new paragraph
|
|
|
|
New line, same paragraph
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
New paragraph
|
2016-12-04 04:57:51 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
---, ***, or ___ for a horizontal line
|
|
|
|
Over the line
|
2017-03-20 16:56:39 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
---
|
2017-03-20 16:56:39 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
Under the line
|
|
|
|
```
|
2017-03-20 16:56:39 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
![](/static/images/help/markdown-paragraph.png)
|
2017-03-20 16:56:39 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
## In-app help
|
2017-03-20 16:56:39 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
A summary of the formatting syntax is available in-app.
|
2017-03-20 16:56:39 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
{!start-composing.md!}
|
2017-03-20 16:56:39 +01:00
|
|
|
|
2018-09-19 17:39:02 +02:00
|
|
|
1. Click the A (<i class="fa fa-font"></i>) icon at the bottom of the compose box.
|