In my summary, the installation and markdown of the MarkdownEditing plug-in sublimetext2

Source: Internet
Author: User
Installing the MarkdownEditing plug-in is essential for writing Markdown. After installation, when writing Markdown (the lower-right corner shows Markdown syntax), you can press ctrlb to generate HTML directly and display it in the browser. (However, after the installation is complete, press ctrlB to generate html files and display them in the browser. Then, let's first install the file and continue to study it later.

Installing the MarkdownEditing plug-in is essential for writing Markdown. After installation, when writing Markdown (the lower-right corner shows Markdown syntax), you can press ctrlb to generate HTML directly and display it in the browser. (However, after the installation is complete, press ctrl B to generate the html file and display it in the browser. Then, let's first install it. We will continue to study it later.

Installing the MarkdownEditing plug-in is essential for writing Markdown. After the plug-in is installed, when writing Markdown (the syntax is Markdown in the lower right corner), you can press ctrl + B to generate HTML directly, and displayed in the browser. (However, after the installation is complete, press ctrl + B to generate the html file and display it in the browser. Then, let's first install the file. We will continue to study it later)


You can also use retext to write markdown. The following is the method for installing retext, but it is written in python and has to install the python compiler. This is troublesome and I think it is better to use sublime text. So proceed with the study.

2. How to install ReText

2.1 Download ReText2 from http://sourceforge.net/projects/retext/

2.2 After decompression, go to its directory and execute sudo python setup. py install.

2.3 After the installation is complete, a new directory named build will be generated in the directory and enter the directory starting with scripts. You will find retext. py and run it. For example

Python retext. py 2>/dev/null 1> & 2 &


Installation:

PassPreferences -> Browse Packages...Open the Packages directory, right-click and choose open in terminal. After the terminal is opened

Git clone https://github.com/ttscoff/MarkdownEditing.git then restart ST2 to complete the installation. The plug-in provides two different color files by default.color_schemeYou can switch the syntax highlighting format of Markdown.

{    "extensions":    [        "md",        "mdown",        "mmd",        "txt"    ],    "trim_trailing_white_space_on_save": false,    // "font_face": "Menlo",    // "font_size": 15,    "font_options": [ "subpixel_antialias", "no_round", "directwrite"],    "color_scheme": "Packages/MarkdownEditing/MarkdownEditor.tmTheme",    // "color_scheme": "Packages/MarkdownEditing/MarkdownEditor-Focus.tmTheme",    "translate_tabs_to_spaces": true,    "word_wrap": true,    "wrap_width": 70,    "draw_centered": true,    "auto_match_enabled": true,    "line_padding_top": 5,    "caret_style": "wide",    "highlight_line": true,    // add trailing #'s to headlines    "match_header_hashes": false}

Functions of MarkdownEditing

The functions provided by MarkdownEditing are listed below.

Syntax enhancement class
  • Asterisks *, underscores _, and backquotes are automatically paired
  • If the content of the input auto-pairing symbol is null, the entire pair is deleted when the first symbol is deleted.
  • If a space is directly entered after the automatic pairing symbol is entered, the automatic matching symbol is automatically deleted.
  • Wavy line~The enclosed content is converted to
  • After a list is created, press enter to automatically add a list item. If the list item is blank, press enter again to delete the list item.
Shortcut Key category (according to the self-modifiedDefault (Windows).sublime-keymapList)

MarkdownEditing shortcut keys in Windows need to be based onDefault (OSX).sublime-keymapAnd add itDefault (Windows).sublime-keymap.

  • Ctrl+Win+VThe selected content is automatically converted to an in-row hyperlink to link to the content in the clipboard.
  • Ctrl+Win+RThe selected content is automatically converted to a reference hyperlink to link to the content in the clipboard.
  • Ctrl+Alt+RIn the pop-up dialog box, insert a reference hyperlink. In the prompt box, enter the link content and define the reference ID [^ 3].
  • Ctrl+Win+KInsert a standard inline hyperlink
  • Win+Shift+KInsert a standard inline image (this shortcut key may conflict with the input method)
  • Ctrl+1ToCtrl+6Insert level 1 to Level 6 Title
  • Win+Alt+iThe selected content is convertedItalics
  • Win+Alt+bThe selected content is convertedBold[^ 1]
  • Ctrl+Shift+6Automatically insert a footer and jump to the definition of the footer.
  • Alt+Shift+FSearch for undefined footer and automatically add its definition Link
  • Alt+Shift+GSearch for undefined reference Hyperlink and automatically add its definition Link
  • Ctrl+Alt+SSorting by footer
  • Ctrl+Shift+.Indent current content
  • Ctrl+Shift+,Current content in advance

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.