Skip to content

Instantly share code, notes, and snippets.

@SiriusDely
Last active August 29, 2015 14:02
Show Gist options
  • Save SiriusDely/7fd87ea8fcae0ce94d54 to your computer and use it in GitHub Desktop.
Save SiriusDely/7fd87ea8fcae0ce94d54 to your computer and use it in GitHub Desktop.
Mou

Mou

Mou icon

Overview

Mou, the missing Markdown editor for web developers.

Syntax

Strong and Emphasize

strong or strong ( Cmd + B )

emphasize or emphasize ( Cmd + I )

Sometimes I want a lot of text to be bold. Like, seriously, a LOT of text

Blockquotes

Right angle brackets > are used for block quotes.

Links and Email

An email example@example.com link.

Simple inline link http://chenluois.com, another inline link Smaller, one more inline link with title Resize.

A reference style link. Input id, then anywhere in the doc, define the link with corresponding id:

Titles ( or called tool tips ) in the links are optional.

Images

An inline image Smaller icon, title is optional.

A Resize icon reference style image.

Inline code and Block code

Inline code are surround by backtick key. To create a block code:

Indent each line by at least 1 tab, or 4 spaces.
var Mou = exactlyTheAppIwant; 

Ordered Lists

Ordered lists are created using "1." + Space:

  1. Ordered list item
  2. Ordered list item
  3. Ordered list item

Unordered Lists

Unordered list are created using "*" + Space:

  • Unordered list item
  • Unordered list item
  • Unordered list item

Or using "-" + Space:

  • Unordered list item
  • Unordered list item
  • Unordered list item

Hard Linebreak

End a line with two or more spaces will create a hard linebreak, called <br /> in HTML. ( Control + Return )
Above line ended with 2 spaces.

Horizontal Rules

Three or more asterisks or dashes:




Headers

Setext-style:

This is H1

This is H2

atx-style:

This is H1

This is H2

This is H3

This is H4

This is H5
This is H6

Extra Syntax

Footnotes

Footnotes work mostly like reference-style links. A footnote is made of two things: a marker in the text that will become a superscript number; a footnote definition that will be placed in a list of footnotes at the end of the document. A footnote looks like this:

That's some text with a footnote.1

Strikethrough

Wrap with 2 tilde characters:

Strikethrough

Fenced Code Blocks

Start with a line containing 3 or more backticks, and ends with the first line with the same number of backticks:

Fenced code blocks are like Stardard Markdown’s regular code
blocks, except that they’re not indented and instead rely on
a start and end fence lines to delimit the code block.

Tables

A simple table looks like this:

First Header Second Header Third Header
Content Cell Content Cell Content Cell
Content Cell Content Cell Content Cell

If you wish, you can add a leading and tailing pipe to each line of the table:

First Header Second Header Third Header
Content Cell Content Cell Content Cell
Content Cell Content Cell Content Cell

Specify alignement for each column by adding colons to separator lines:

First Header Second Header Third Header
Left Center Right
Left Center Right

Shortcuts

View

  • Toggle live preview: Shift + Cmd + I
  • Toggle Words Counter: Shift + Cmd + W
  • Toggle Transparent: Shift + Cmd + T
  • Toggle Floating: Shift + Cmd + F
  • Left/Right = 1/1: Cmd + 0
  • Left/Right = 3/1: Cmd + +
  • Left/Right = 1/3: Cmd + -
  • Toggle Writing orientation: Cmd + L
  • Toggle fullscreen: Control + Cmd + F

Actions

  • Copy HTML: Option + Cmd + C
  • Strong: Select text, Cmd + B
  • Emphasize: Select text, Cmd + I
  • Inline Code: Select text, Cmd + K
  • Strikethrough: Select text, Cmd + U
  • Link: Select text, Control + Shift + L
  • Image: Select text, Control + Shift + I
  • Select Word: Control + Option + W
  • Select Line: Shift + Cmd + L
  • Select All: Cmd + A
  • Deselect All: Cmd + D
  • Convert to Uppercase: Select text, Control + U
  • Convert to Lowercase: Select text, Control + Shift + U
  • Convert to Titlecase: Select text, Control + Option + U
  • Convert to List: Select lines, Control + L
  • Convert to Blockquote: Select lines, Control + Q
  • Convert to H1: Cmd + 1
  • Convert to H2: Cmd + 2
  • Convert to H3: Cmd + 3
  • Convert to H4: Cmd + 4
  • Convert to H5: Cmd + 5
  • Convert to H6: Cmd + 6
  • Convert Spaces to Tabs: Control + [
  • Convert Tabs to Spaces: Control + ]
  • Insert Current Date: Control + Shift + 1
  • Insert Current Time: Control + Shift + 2
  • Insert entity <: Control + Shift + ,
  • Insert entity >: Control + Shift + .
  • Insert entity &: Control + Shift + 7
  • Insert entity Space: Control + Shift + Space
  • Insert Scriptogr.am Header: Control + Shift + G
  • Shift Line Left: Select lines, Cmd + [
  • Shift Line Right: Select lines, Cmd + ]
  • New Line: Cmd + Return
  • Comment: Cmd + /
  • Hard Linebreak: Control + Return

Edit

  • Auto complete current word: Esc
  • Find: Cmd + F
  • Close find bar: Esc

Post

  • Post on Scriptogr.am: Control + Shift + S
  • Post on Tumblr: Control + Shift + T

Export

  • Export HTML: Option + Cmd + E
  • Export PDF: Option + Cmd + P

And more?

Don't forget to check Preferences, lots of useful options are there.

Follow @chenluois on Twitter for the latest news.

For feedback, use the menu Help - Send Feedback

Footnotes

  1. And that's the footnote.

Welcome to Texts!

Texts is “rich editor for plain text”—you can write documents in visual interface and they will be saved in plain text format with Markdown markup. This document shows some styles available in Texts. Please feel free to edit it—a fresh copy is always available via Help menu.

Inline Formatting

To apply emphasis or strong emphasis press ⌘I or ⌘B and type. Press again to turn it off.

Footnotes

Notes can be placed anywhere1 in the source file (press ⌘R to insert one). When document is published to paper-oriented format (PDF or Word) footnotes are displayed at the bottom of the corresponding page. E-book readers usually display notes in popups.

Hyperlinks

Press ⌘K to insert a hyperlink. It can be either literal URL (e.g. http://www.google.com/) or have some text. Click URL with ⌘ key pressed to open it in web browser.

Math

Formulas can be placed inline like $E=mc^2$ or in a separate paragraph, like the following one. Standard LaTeX syntax is supported.

$$ \frac{n!}{k!(n-k)!} = \binom{n}{k} $$

Code

Inline code gets monospaced font.

Verbatim blocks use monospaced font as well and preserve line
breaks

Press “Enter” key inside code block to insert a line break or “Shift+Enter” to end code block.

Lists

  • First bulleted item.

  • Second bulleted item.

Lists can be styled via menu, keyboard shortcut, or using autoformatting: type minus and space for bulleted item or “1”, point and space for numbered item. Press “Tab” to indent paragraph and create subitem, “Shift+Tab” to unindent.

  1. First numbered item.

  2. Second numbered item.

Tables

Press ^⌘L to create a table, ⌥⌘+arrow keys to add more columns or rows, ^⌘+arrow keys to move column or row. Here is a sample table.

+--------------+-----------------------+-------------------+--------------------+ | Features | Editable in Texts | Export to PDF | Export to HTML | +--------------+-----------------------+-------------------+--------------------+ | Basic Styles | ✓ | ✓ | ✓ | +--------------+-----------------------+-------------------+--------------------+ | Footnotes | ✓ | ✓ | ✓ | +--------------+-----------------------+-------------------+--------------------+ | Images | ✓ | ✓ | ✓ | +--------------+-----------------------+-------------------+--------------------+ | Tables | ✓ | ✓ | ✓ | +--------------+-----------------------+-------------------+--------------------+

Happy writing!

Got a question? Visit http://www.texts.io/support/.

Footnotes

  1. Yes, right here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment