markdaown grammar

markdown - a simpler, more efficient

=================================================

Developers are strongly encouraged to carefully read this document, and HBuilderX master md md's strong support for.
If no set point right wrap, press Alt + scroll wheel laterally.

Many people only markdown for Network article was published, which ruined markdown.
markdown is not just a simplified version of HTML, txt more important is the upgraded version, the best carrier word, lightweight version, note.
As a simple markup language format, unlike the plain txt, unlike HTML tag complex also from mouse adjustment pattern word. markdown by simply typing a few characters, you can quickly define the style of the document.
For example, the first line to knock a "#", put this line defines the title for level 1, and intuitive coloring HBuilderX in perfect, so no need to publish web pages, can be directly used when word.
Master markdown, you can completely abandon txt and note-taking software editor, and replace the word out complex and weighty in most scenarios. Enjoy the simple beauty and enjoy the efficiency gains.
And HBuilderX, can be called the most powerful markdown writing tool.

The following example lists the markdown syntax and the corresponding HBuilderX tips:

Before you start, you can press the document map of the shortcut Alt + w (Mac is Ctrl + w), browse the outline of this article.

Title grammar

markdown of the title is the first line beginning with the # sign, space-separated, different levels of headings, the HX is also different in coloring. as follows:

Heading 1

Heading 2

Title 3

Heading 4

Heading 5
Heading 6

Title tips:

  1. Emmet fast input: knock h2 + Tab to generate a secondary title [with HTML in the emmet writing, more than the title, HX where all of the corresponding tag markdown syntax support emmet wording]. Only the beginning of the line to take effect
  2. Intelligent Double-click: Double-click the # optional paragraph in the entire title
  3. Smart Enter: end of line carriage return or line Ctrl + Enter after the forced line break will automatically fill in the next line #. And after two consecutive carriage returns automatically fill the # removed. (Experience with word)
  4. Pressing Tab again after the transport layer header progressive, press Tab switch operator list
  5. After Enter #, you can insert an empty title on the line with [word], or anywhere press Ctrl + Shift + Enter can also be inserted empty title on the line
  6. fold:
    • Title before point - the heading paragraph No. collapsible, shortcut key is Alt + - (expand collapse is Alt + =)
    • The multilayer folding or unfolding the folded child node, a shortcut Alt + Shift + - or =
    • The full text of all folded or unfolded, the shortcut key is Ctrl + Alt + Shift + - or =
    • Folding the other regions, the shortcut key is Alt + Shift + o. This is very useful for long-document management, to focus on the current chapter
    • In the menu you can - find these features fold at any time - Jump

List

markdown list of support ordered lists, unordered lists and special task list.
Is also the line plus a special symbol before and after the space with a list of text.

Ordered list

There is an ordered list of the order of the list, relying on the order of the digital tag in front of the line.

  1. [1 ordered list set or cancel an ordered list of character shortcut keys: Ctrl + Alt + 1, optional multi-line batch set number; cursor support multi-volume set list of characters, that is, press Ctrl + left mouse button to add multiple cursors]
  2. 2 ordered list after list [Enter] will automatically fill the serial number
  3. 3 Double-click the ordered list [Intelligent: Double-click on the digital front, the digital re-ordering, error correction number, and select the ordered list of paragraph (4 on the left is wrong on purpose to let you experience)]

Unordered list

Unordered list is not sorted list, unordered list because writing is casual and more widely used.
There are three prefixes unordered list, the HX in stage 1 are used to represent the list, a list of level 2, level 3 lists.

  • [Unordered list of shortcuts 1: Ctrl + Alt + -; intelligent Double-: Double - Alternatively the whole number of the unordered list; press Tab again will replace two character list]
  • Unordered list 2
    • Emmet: After knocking li Tab to generate an asterisk symbol list, the first line of the entry into force
    • Shortcut: Ctrl + Alt + 8 [8] that is * the number corresponding to support multi-volume set list cursor character, that is, press Ctrl + left mouse button to add multiple cursors
    • Intelligent Double-click: Double-click the * entire paragraph number in an unordered list of optional
    • Smart Enter: end of line carriage return or line Ctrl + Enter mandatory list will automatically continue after wrapping; continuously press the Enter clears the list of symbols; press Tab again will replace the list of characters; carriage return or end of line Shift + character back after the list car, stay on the line a list of character
    • * Number commonly used in the two lists, a list of the character continues Tab, switchable operator list
  • Unordered list 3 [shortcut: Ctrl + Alt + =; commonly used in three list; other ibid.]

task list

Task list is very practical, do manage to-do has been very convenient.
[] Task List - Open Tasks [shortcut: Ctrl + Alt + []
[x] Task List - Completed tasks [shortcut: Ctrl + Alt +]]
1. Smart Double-: switchable check state by double clicking the square brackets, marking the task as complete or incomplete; double-click the right square brackets are optional task list passage
2. intelligent carriage: carriage return automatically fill task list prefix notation; Clear the continuous press Enter prefix notation; carriage return character or the list Enter Shift + end of line, a line leaving a list of character

These three lists, support batch modify the list of operators, following these recommendations in order to try to learn:

  1. Select multiple rows, press the shortcut keys Ctrl + Alt + "1" or "-" or "[" or "]", volume set list of character
  2. If you need to skip list ordered or unordered set by Ctrl + left mouse button in a plurality of rows target (not continuous), to produce a multi-cursor, and shortcut keys Ctrl + Alt + "1" or "-" or "[" or "]" character may skip list provided, in particular an ordered list, a number is added to a skip
  3. Press Alt + mouse to select the beginning of the line that column (column selection), so that each trekking capital of the cursor, and then type or delete characters to the list of bulk actions
  4. Select multiple rows, press the shortcut keys Ctrl + Shift + \ (in fact, Ctrl + |), can be added in each of the first trekking a cursor

Reference list

References 1
references 2
shortcut keys: Ctrl + Alt + Shift +.
Intelligent Double-click: Double-click> No optional in the whole reference list
intelligent Enter: end of line carriage return or line Ctrl + Enter mandatory will automatically continue the list after wrapping; continuously pushed back vehicle clears the list of symbols; Enter Shift + Enter or end of line character after the list, a list of the character line leaving

Text style syntax

Bold [shortcut: Ctrl + B, supports multiple cursors; Emmet,: Tab after knocking b]
Bold 2
inclination [Emmet: i Tab after knocking; front surround: select the text press Ctrl + \ is added on both sides of the selection cursor, can continue entering ]
tilt
Strikethrough
单行代码
Enclosing insert: first select the text, and then press the
* ~ `symbols such, automatically 2 side plus surround
intelligent Double-: Double preceding syntax region defined symbol, select the whole text containing delimiters in
to surround: Select the whole paragraph after press Ctrl + Shift +], 2 side wrapping symbol may be removed

Quotes brackets are not members of markdown syntax, but also support the same surrounded by choice, to surround the operation.
Special marks slightly when the brackets are intelligent Double-click: Double quotes inner parentheses, brackets quotes selected content (without the quotes brackets); press Alt + double click quotes inner bracket, the whole text is selected symbol comprises

HBuilderX 2 also supports the following methods for the efficient processing of the text-side

  1. Selected text Press Ctrl + \ is added on both sides of the selection cursor, can continue to enter ~~ 2 will simultaneously input side
  2. Expanding the side select 2: [Win: Alt + Shit + →, Mac: Ctrl ++ Shit + →]; reduced selection by the inner side 2: [Win: Alt + Shit + ←, Mac: Ctrl ++ Shit + ←]

Link text

  1. Emmet: a knock after Tab
  2. Open Link: Alt + mouse click; if it is a local file, by Shift + Alt + click, open the file in the other columns
  3. Smart Paste: paste the URL will automatically become a hyperlink format; paste local files come automatically create a reference link
  4. Double-Smart: Double syntax beginning area, i.e. [left, containing selected block of text delimiters

[Picture upload failed ... (image-77a420-1559571313062)]

  1. Emmet: img after knocking Tab
  2. Smart Paste: md automatically saved in a native document attachments when you paste the clipboard in graphics; deleted document syntax picture, image attachments are automatically deleted when you save md corresponding document; references automatically become links when you paste the picture file format ;
  3. Suspension Preview: mouse over picture grammar, the local picture is displayed automatically
  4. Intelligent Double-click: Double-click the Grammar area beginning that the whole text on the left, select the Include delimiters in!

form

  1. Emmet: After table3 * 3 knock Tab, represents 3 generate a table rows and three columns, the first line of the entry into force
  2. md table alignment is pain points of traditional md, HBuilderX press (case yet compatible with different zoom mode and font) Ctrl + K can automatically organize tabular format
  3. Table supports copy and paste from the table excel, wps, word, number of incoming (not supported by the merged cell and cell line feed)

Dividing line

------------- [Emmet: hr after knocking Tab]


=============

Code area

    var a = document

Emmet: After the code knock Tab, the first line of the entry into force
of smart double-click: Double-click the Grammar area beginning that the whole text on the left, select the Include delimiters in!

Note


Shortcut: Ctrl + /
Intelligent Double-: Double-annotation of end to end delimiter, select the whole annotation

Other emmet fast input

day after knocking Tab, the current date. Note that the first day or in front of the line to be a space
after time knocking Tab, the current time. Note that time to be the first line or in front of a space

Document Map

When the article is very long, word, there are the Document Map, HBuilderX there.
Menu View - Document Map, shortcut Alt + W (mac is ctrl + W), easily manage long documents

Run, preview and print PDF

Md file to run the point toolbar or menu in the browser, you can use an external browser preview md this file, it will automatically rendered as HTML.
Preview the upper right corner of the keyboard shortcut Alt + p [], you can preview the document in the HBuilderX md right side HTML rendering results.
In the browser midpoint print, select Print to PDF, md can be output to PDF format. (Note remove headers and footers in the print option in)

Other commonly used, but you may not know the shortcuts skills

  • Ctrl + left mouse button to add a multi-cursor, or typing along and paste, may be a batch process. Ctrl + left mouse button and drag the election, to select multiple constituencies.
  • Ctrl + right mouse button to delete multiple cursor
  • No pressing Ctrl + C content selected from X or may be cut or copy an entire row
  • After selecting two constituencies, press Ctrl + Shift + X, interchangeable constituencies content. If there is no selection, but two cursors, the exchange line 2
  • Ctrl + keys to move up and down the vertical line
  • Ctrl + Insert reusable insert the current line, if there is a check content, reusable insert the selected content
  • Ctrl + Shift + K may incorporate a plurality of rows (Ctrl + K formatted reverse operation)
  • delete
    • Press Ctrl + D to delete the selected line, to support multi-cursor
    • Shift + Del Delete to end of line
    • Shift + Backspace to delete the beginning of the line
  • select
    • Ctrl + E is selected from the same word (mac is Command + D), optionally in a continuous multi-word according to a further operation, more convenient than the alternative
    • Ctrl + L can even choose multiple lines, Ctrl + Shift + L also select the row, and last but not the selected row of blank characters
    • Ctrl + = progressively larger selection can
    • Double-heading, the list of selectable character corresponding paragraph
    • Double-quotes, the inner bracket, optional internal content
    • Double-break indent, optionally with the indented paragraph
    • Double-click the hyphen, such as - or _, the word connected to an optional, such double-click here to try, uni-app
  • Seek
    • Ctrl + P to find files
    • Ctrl + Alt + F to search for all documents specified keywords in the current directory (mac is Command + Shift + f)
    • Select the text press F3, Find Next, Shift + F3 to find on a
  • Cloud sync: HBuilderX + markdown tips for cloud sync notes, please refer http://ask.dcloud.net.cn/article/13097

We have learned it?
markdown syntax is very simple, serious learning and a half hours to master.
HBuilderX geeks operation you need to constantly repeated practice to master these skills, you will become efficient geeks!

Reproduced in: https: //www.jianshu.com/p/6acc481789fe

Guess you like

Origin blog.csdn.net/weixin_33836874/article/details/91257566