Markdown is a clean coding tool

markdown refers to a text format, which is a lightweight markup language, mostly used by programmers. Programmers of any language actually prefer this format.

It is a minimalist text format. It is the simplest way to write formatted content. For programmers, it is not so important whether the written text content is good-looking or not. We mainly focus on the content.

In other words, as long as the title is clear, there is a code segment that allows me to write some code in a better format, and the rough indentation can distinguish the level of the title. , it would be best if there is

markdown is such a formatted text

 How to view markdown

Markdown format text, the file suffix is ​​.md, you can basically edit it as long as you open the editor, but if you want to view the markdown format document separately, you need to download a visualization software.

For example, if you want to read word documents, you need to install an office. For example, if you want to read mp4 files, you need to install a fast broadcast, which is a reason.

Then if you want to read markdown, you need to download an adaptable software. Generally speaking, we will use typora software to view it, because this software is relatively light and convenient

 Common syntax of markdown

1. Title

If you need to write the title in markdown, just write # directly, one # corresponds to our H1 tag, and two ## correspond to our H2 tag.

and so on

2. List

If you need an unordered list, just write a dash (-) plus a space

If you need an ordered list, just write the numbers, add dots and spaces

3. Hyperlinks

Just write []() directly, write the text content in [], and write the connection address in ().

4. Pictures

Just write ![](), just write the image address in ()

5. Citation writing

Just write > add a space

6. Code segment writing

Just write three backticks (```) plus the language type

For example: we want to write js, then write ```js, and write three backticks (```) at the end of the code segment

7. Separator

This is very simple, just write three dashes (---) or three asterisks (***)

8. Text Emphasis

Bold: wrapped with **

Italics: wrapped with *

Strikethrough: wrapped with ~~

9. Form

It is relatively complicated, but the core is the vertical line ( | ), and the other is the way

:--- Align left

:---: center alignment

---: align right

 at last

Markdown generally does not consider color issues. If you want to add some text colors or other styles to your markdown, then we can completely rely on html + css to add, but this method is rather weak

Guess you like

Origin blog.csdn.net/JACK_SUJAVA/article/details/129670523