I. Introduction to markdown
Markdown is a lightweight markup language. It has many advantages and is widely used by more and more writers. Do not be confused by the "mark" or "language". The markdown syntax is very simple. There are no more than 10 commonly used markup symbols. Compared with the more complex HTML markup language, markdown is very lightweight and does not require much learning cost, once you are familiar with this syntax rule, it will have a permanent effect.
Ii. Use markdown
For Windows, you can choose markdownpad as the markdown editor. It is said that you can also output PDF files. For Linux, we recommend that you use sublime. I have used Ubuntu to achieve very good results. It can be output in HTML format, or you can open a browser to view it through the editor. Installing sublime first and then selecting
Preference --> plug-in control --> install packages wait a moment and an output box is displayed. You can enter markdown editting for installation, and then enter markdown preview for installation.
3. Basic markdown syntax
Font format * italic ** bold ** 'important font'> reference the following title format # Title 1 # Title 2 ### Title 3: unordered list-list -List-Sub-list + list * List Order List 1. ordered list 2. ordered list 3. ordered list connection [This is Baidu connection] (http://baidu.com )! [This is the picture] (http://s2.51cto.com/wyfs02/M01/31/40/wKiom1OqaE7ytvjqAAE3xo7A5aA082.jpg) writing code ''' pythonimport randomclass cardgame (object ): "A sample Python class" nb_cards = 32 def _ init _ (self, cards = 5): Self. cards = random. sample (range (self. nb_cards), 5) print 'ready to play ''' split line *** remember that these basics are enough, for more information, see the syntax description provided after markdown is installed: in sublime, press Ctrl + Shift + P to open the command input box, enter open markdown cheat sheet, and press enter to open a markdown document.
This article is from the "Focus on Linux" blog, please be sure to keep this source http://forlinux.blog.51cto.com/8001278/1533864