Preface
I'm just here to write about common markdown syntax, for details, please refer to the detailed explanation of markdown
Introduction to markdown
Markdown is a markup language that can be written with a common text editor. Through a simple markup syntax, it can make common text content have a certain format. The grammar is concise, easy to learn, and the function is stronger than plain text. It is the best text language for blogging
Come on, don’t talk much
Article Directory
1. Title
When you write a blog or an article, the first thing you do is to write the title, and the size of the title is different
There are six levels of headings in markdown
The effect is as follows
First level
Level 2
Level 3
Level 4
Level 5
Level 6
usage
# 一级
## 二级
### 三级
#### 四级
##### 五级
###### 六级
ps:注意一共就有六级,所以#号最多到六个,当大于六个的时候默认为第六级标题
ps:注意#号与标题之间有一个空格
Second, the font
When writing an article, if there are some more important content that needs to be highlighted, you need to do some special processing, such as bolding, italicizing, adding color, etc.
Font status effect
Here is italics here is italics
Here is bold
Here is slanted bold
Here is strikethrough
Note text
*这里是斜体* _这里是斜体_
**这里是粗体**
***这里是斜体加粗***
~~这里是删除项~~
==标记文本==
ps:注意这里的符号与字体之间空格不是必须的,不加没影响,加了就相当于帮空格也进行相应的操作,比如帮空格加粗,变斜等
The color and size of the font need to use simple code to achieve, I see that other ways to change the color of the font are also possible, but some I can’t use it when I test it, I think this method is also very good, you can set the font at the same time Color and size
The specific effects are as follows
I am gray
I am green
I am hotpink
I am LightCoral
I am LightSlateGray
I am orangered
I am red
I am springgreen
I am Turquoise
usage
<font color=gray size=4>我是gray</font>
<font color=green size=4>我是green</font>
<font color=hotpink size=4>我是hotpink</font>
<font color=LightCoral size=4>我是LightCoral</font>
<font color=LightSlateGray size=4>我是LightSlateGray</font>
<font color=orangered size=4>我是orangered</font>
<font color=red size=4>我是red</font>
<font color=springgreen size=4>我是springgreen</font>
<font color=Turquoise size=4>我是Turquoise</font>
ps:这里就要考考大家的英语词汇量了,相必大家英语肯定very good
Here is how to set the background color by the way
Single layer background color
Behind me is pink |
Double background color
|
Everyone clicks on the background to get a specific code, so no more usage methods
PS: pay attention to the last'' on the rice is not added
Here are some good background colors recommended
PeachPuff
PapayaWhip
PaleGreen
PaleGoldenRod
MistyRose
Linen
LightPink
LightGoldenRodYellow
Feldspar
DarkSalmon
BurlyWood
Some people like to use a specific font, here you can also set the type of font
I am in boldface
I am Microsoft
Yahei I am Huawen Caiyun (STCAIYUN)
Three, quotes, dividing lines, code blocks
The usage of quotation and dividing line is relatively simple, so I won’t explain too much
- Quote
Quote one
Quote 2
Quote Three
引用方式>
- Segmentation: Segmentation is actually the dividing line between contexts
分割线的使用,使用三个或以上的* 或 -即可
如上文中的两种使用方法为
---
***
- Quick insertion of code blocks
代码块的快捷插入为,英文模式下的三个```号 esc下的那个键
Four, list
For example, if you want to list some properties of a thing, then you need to have a list to display it to increase the order of the transaction. There are two types of lists, unordered lists and ordered lists
- Unordered list
List form
-
Unordered list 1
-
No need for table 2
-
No need for table 3
无序表使用+ * -表示 使用与表之间有一个空格,用于缩进
-
Ordered list
-
Ordered list 1
-
Ordered list 2
-
Ordered list 3
有序表是带有顺序的列表,用于具有一定顺序的条例罗列时使用,
ps:有序表的用法是由数字加上英语的逗号组成,逗号与列表之间有一个空格,便于缩进
ps:注意事项,大家在使用列表时无论是无序列表还是有序列表时,大家会发现一旦一开始使用列表时,你按回车时他会自动变为下一条列表,这时大家如果列表已经列完了,想退出列表,只用再按一下回车键就可以退出列表
Five, pictures, link insertion
When you are writing an article, you may need to use some pictures or links in order to increase the beauty and necessity of the article
-
There are two ways to insert pictures.
- Insertion of native pictures
- Insertion of online pictures
![Crayon Shin-Chan](https://cdn.duitang.com/uploads/item/201412/24/20141224010926_crKEt.thumb.700_0.jpeg)
插入本机图片只用在图片路径选中本地图片的路径即可
插入网络图片在图片的路径中填写网络图片的网络路径即可
- Link insertion
使用方法 英文括号[]加上英文括号 ,[]中填写该链接的介绍()中填写链接地址
ps:插入链接使用快捷键比较推荐
Six, form
The form can be used with the built-in markdown, and the built-in form is relatively simple to use
If you want to show the operation, of course it is also related to another
姓名|性别|年龄
:--|:--:|--: <!--这里的冒号指的是下面图表中内容对呀的向那边靠齐,在左边左靠齐两边都有中间靠齐>
张三|男|10
李四|男|20
王五|男|30
Name | gender | age |
---|---|---|
Zhang San | male | 10 |
Li Si | male | 20 |
Wang Wu | male | 30 |
Seven, interesting graphs
- Make a to-do list-Todo list
- Two production methods, the first one uses the built-in method
- Matter one
- Matter two
- Matter Three
该方法使用的是markdown软件自带的方法,右击鼠标会有一个框框,点击后就是,可以用过点击框框勾选
- Use code not included in software
- Matter one
- Matter two
- Matter Three
该方法使用-[]以及-[x]两种形式 ,括号带x效果为勾选的,不带x表示不勾选
ps:其实这两种方法的使用难度差不多,后面使用起来看起来更加秀一点
Eight, commonly used shortcut keys
Features | hot key |
---|---|
Bold | Ctrl + B |
Italic | Ctrl + I |
Quote | Ctrl + Q |
Insert link | Ctrl + L |
Insert code | Ctrl + K |
Insert picture | Ctrl + G |
Boost title | Ctrl + H |
Ordered list | Ctrl + O |
Unordered list | Ctrl + U |
Horizontal line | Ctrl + R |
Revoke | Ctrl + Z |
Redo | Ctrl + Y |
Nine, summary
This is the first article I wrote with markdown. It is mainly used to learn the use of markdown and the process of blog writing and uploading. I really feel that blogging is really a very good thing. You can write it in the process Summarizing the knowledge points can not only strengthen your own understanding, but also find out where you are confused, and it is also a very good thing to review it later, and the articles written by yourself can be seen by others and may help solve them. Other questions are also very worthwhile. This is my summary of the use of markdown from the perspective of a beginner. It can fit the perspective of beginners and understand more about what beginners need and how to understand. By writing this article In the article, I found that my understanding of markdown has been further deepened. The first time I wrote it may not be good, but I will continue to work hard later.