Part1 Markdown Introduction
Markdown is a simple, lightweight markup language developed by John Gruber and Aaron Swartz created. Markdown very many advantages, such as: simple syntax, allowing the document easier to read, maintain, and modify, but I think the more attractive one advantage:
Markdown Let us focus on the content of the article, instead of focusing on publishing
Indeed it is, whether it is to write blog or write other articles, if the word to write, typesetting bound to be a vexing problem. And if using html to write, although very intuitive, but kept the input tag will greatly reduce the efficiency of writing. Such as writing a simple list:
1 <ul>
2 <li>sublime text2</li>
3 <li>markdown</li>
4 <li>notepad++</li>
5 </ul>
Actually, we just want to output a simple list, but the time it takes almost the Edit tab to edit the content to catch up with time. Then we look at the use Markdown to achieve this list.
1 - sublime text2
2 - markdown
3 - notepad++
just before the content of each list with "-" symbol, you can directly generate an unordered list.
- sublime text2
- markdown
- notepad + +
another look at how to use Markdown output title:
1 # This is h1
2 ## This is h2
3 ### This is h3
4 #### This is h4
5 ##### This is h5
6 ###### This is h5
This is h1
This is h2
This is h3
This is h4
This is h5
This is h6
More Markdown syntax may refer http://wowubuntu.com/markdown/ is not enumerate here, basically spend 5-10 minutes can grasp the basic syntax of Markdown.
Part2 the sublime use Markdown
then as a sublime lover how are we going to use Markdown it? First, of course, is to install the sublime and the Package Control. . . Specific reference articles Sublime Text 2 entry and techniques
install Markdown Preview plugin
Markdown plugin here only recommend Markdown Preview, others indeed how not used. Mardown Preview not only support in the browser preview Markdown files, you can also export the html code so greatly facilitate our export code posted to the blog.
briefly described below under Markdown Preview plug-in installation and use of a plug-in installation panel found Markdown Preview and install
2 ctrl + shift + p (windows down shortcuts) to call up the command panel, the input mdp, circle the red line in the figure below is in the browser preview Markdown files. Another common feature is the fourth figure, Export HTML in Sublime Text, html file that is exported to the sublime text.
Markdown syntax highlighting
sublime style theme comes with no markdown syntax highlighting, so from the Internet to find one to do some simple changes, I feel okay with color. Attach Code Address: Monokai-custom.tmTheme to download the above code and name as: Monokai-custom.tmTheme, into "Packages / User /" file directory, and then select the panel: Preferences-> Color Scheme-> User-> Monokai-custom, as shown below:
highlighting the effect as shown in the figure above.
Summary: Overall, use Markdown syntax to write articles is very convenient, this article also through Markdown to write, than before with Windows Liver Writer higher efficiency. Of course, the point is to fly in the ointment of image processing, because you can only insert images Markdown address, can not upload pictures, but I was first through the ftp upload pictures to the site and then get the link inserted. If you find a better way in the future then add.
没有评论:
发表评论