(reprint) Sublime3 install Markdown plug-in

Source: Internet
Author: User

Original link http://www.jianshu.com/p/335b7d1be39e?utm_source=tuicool&utm_medium=referral

Recently upgraded to Sublime 3, so it involves reinstalling my favorite plugins. As a heavy user of markdown nature's plugin for markdown is essential (one of the most important reasons for choosing to write in a book is because Jane's markdown writing environment is very comfortable). Here's a record to share the two markdown plugins I used.

Markdownediting

Markdownediting is a must-have plugin for markdown writers, which can not only highlight markdown syntax but also support syntax highlighting in many programming languages.

Omnimarkuppreviewer

Omnimarkuppreviewer is used to preview the effects of markdown edits, as well as the style of rendering code highlighting.

Installing plugins

Before installing the plugin, we need to install one of the most indispensable plug-in package Control in sublime, and we will need the help of this plugin to install and manage plugins later.

Install the "package Control"

Use the shortcut key " Ctrl + " To open the sublime console, or select View > Show Console.

In the console of the command line input box, the following section of code paste in, enter can complete the installation of Pacakge Control.

Import Urllib.request,os,hashlib; h =' eb2297e1a458f27d836c04bb0cbaf282 ' +' d0e7a3098092775ccb37ca9d6b2e4b7d '; pf = ' package control.sublime-package '; IPP = Sublime.installed_packages_ Path (); Urllib.request.install_opener (Urllib.request.build_opener (Urllib.request.ProxyHandler ())); by = Urllib.request.urlopen ( ' http://packagecontrol.io/' + pf.replace (', '%20 ')).  Read (); DH = hashlib.sha256 (by). Hexdigest (); print (' Error validating download (got%s instead of%s), please try manual install '% (DH, h)) if DH! = h  else open (Os.path.  Join (IPP, pf), ' WB '). write (by)             
Installing markdownediting

After the package control is successfully installed, we can use it to manage the plug-in conveniently, first use the shortcut key ' COMMAND + SHIFT + P ' to enter the sublime command panel, and enter the "Add to install" from the list to select "Install Package "and then enter. At this time sublime began to request the remote plug-in warehouse index, so the first use may have some small delay.


Paste_image.png

After you see the list of updates, enter the "markdown Ed" keyword and choose "markdownediting" to enter. After the plug-in is installed, you need to restart the sublime plugin to take effect. Here is how I use sublime to edit the display of code snippets.


Markdownedit Display Effect

In addition to highlighting the syntax, Markdownediting also provides some shortcuts for quickly inserting markdown tags, the following are two of my favorite (more shortcuts see their official documentation).

    • Command + OPTION + K Insert Link
    • Command + SHIFT + K Insert Picture

I like markdownediting a few more "code snippet" for us than shortcut keys.

Entering "MDI + TAB" automatically inserts the following picture marker

![Alt text](/path/to/img.jpg "Optional title")

Enter "MDL + TAB" to automatically generate the following link tag

[](link)
Installing Omnimarkuppreviewer

With the basic editing needs, the next look at Markdown renderings or the output HTML format, Omnimarkuppreviewer will come in handy, and we also need to use pacakge control to install the plugin. Type "COMMAND + SHIFT + P" into the Sublime command interface, enter "package ins" and then enter "Ominmarkup" to select Omnimarkuppreviewer, enter.


Installing Omnimarkuppreviewer

After the plugin is successfully installed, we can use the shortcut key to preview the edited markdown source file. Here are a few common shortcut keys.

    • Command +option +o: Preview in Browser
    • Command+option+x: Exporting HTML
    • ctrl+alt+c:html tag Copy to clipboard

The following is the effect of the same Code markdown code in the browser after previewing.


Browser Preview Effect

Equipped with the above two plug-in after the use of sublime in the markdown fully meet the daily needs, enjoy the markdown writing to bring you the fun.

(reprint) Sublime3 install Markdown plug-in

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.