Github README Syntax

README

This repo is a translation of https://github.com/guodongxiaren/README. Thanks a lot for the original author’s effort.
This file is used to demonstrate the markdown syntax for writing README files. The markdown syntax is extended on Github, which is called GitHub Flavored Markdown, i.e. GFM. GFM is widely used on GitHub. Issues and wiki also support GFM syntax.


TranslatorYaoyao Liu
E-mailyliu@yliu.tech

Index

Lines


***、—、___can display the line effect




Headers

This is an h1 tag

This is an h2 tag

This is an h3 tag

This is an h4 tag
This is an h5 tag
This is an h6 tag

Texts

Normal text

This is a example of normal text.

Single-line text

Hello, world!

Add 1 tab or 4 spaces at the beginning of the line.

Multi-line text

Syntax 1

Add 1 tab or 4 spaces at the beginning of several lines of text.

Sons of Gondor,
of Rohan,
my brothers!
Syntax 2

Use three backticks:

Sons of Gondor,
of Rohan,
my brothers!

This syntax can also be used for code highlighting,See Fenced code blocks.

Text highlighting

Using a pair of backquotes.
Syntax:

`linux` `ubuntu` `socket` `epoll` 

Look like: linux ubuntu socket epoll

Also suitable for making tags for articles.

Wrap

Directly inputing return cannot wrap.
You may add two spaces after the previous line of text.
Then the text of the next line is wrapped.

You may also add a blank line directly to the two lines of text.

This operation can also be used to wrap, except the line spacing is a bit large.

Emphasis and strikethrough
SyntaxLook like
*Italic1*Italic1
_Italic2_Italic2
**Bold1**Bold1
__Bold2__Bold2
This is a ~~strikethrough~~This is a strikethrough
***Italic plus bold1***Italic plus bold1
___Italic plus bold2___Italic plus bold2
***~~Italic, bold, and strikethrough1~~***Italic, bold, and strikethrough1
~~***Italic, bold, and strikethrough2***~~Italic, bold, and strikethrough2
Italic, bold, strikethrough is able to be used together.

Images

Basic syntax:

![alt](URL title)

alt and title are corresponding to the alt and title attributes in the HTML (all can be omitted):

  • alt indicates the replacement text when the image fails to display
  • title indicates the text to display when the mouse hovers over the image (note that it should be quoted here)

The URL is the url address of the image. If you refer to the image in this repository, you can use the relative path directly. If you refer to the images in other github repositories, you should pay attention to the format, ie: repository address/raw/branch_name/image_path, e.g.

https://github.com/username/reponame/raw/master/folder/imagename.gif
#SyntaxLook like
1![Google](https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png "Google logo")Google
2![][foryou]

Note that the syntax of Example 2 uses the form of the link labels, which has been described in the Link section.

foryou is defined at the end of the page like this:

[foryou]:https://i-blog.csdnimg.cn/blog_migrate/8c3acc0ece5d9f6e8841d1c807ce7696.gif

Link

Links to external URLs

#SyntaxLook like
1[My blog](http://www.cnblogs.com/yaoyaoliu "Hover display")My blog](http://www.cnblogs.com/yaoyaoliu “Hover display”)
2[My GitHub][GitHubLink]My GitHub

This syntax consists of two parts::

  • The label in [ ] (in this case is GitHubLink). It can be a combination of numbers, letters, etc.
  • The actual URL.

You may define your link label anywhere in the document.

Links to the URLs in this repository

SyntaxLook like
[Example document](/example/example.md)Example document
[example](./example)example

Image links

The essence of adding links to images is mixing image display syntax with the normal link syntax. In the normal link, [ ] is the text to be displayed inside the link, and the image link [ ] is the image to be displayed.
It’s ok to mix the two syntaxes directly, but it’s awkward, so we can use the form of the link label.

#SyntaxLook like
1[![weibo-logo]](http://weibo.com/)weibo-logo
2[![](/img/zhihu.png "This is the Zhihu link")][zhihu]
3[![csdn-logo]][csdn]csdn-logo

As the image and the link both support link label, the image link can be very simple (see Example 3).
Note that the text displayed when the mouse hovers there is the title of the image, not the title of the link.

All the link labels in the documents is placed at the end of the document.

Anchor

In fact, each title is an anchor, similar to the HTML anchor (#), e.g.

SyntaxLook like
[Back to top](#readme)Back to top

Note that all the letters in the title are converted to lowercase letters.

Lists

Unordered

Syntax
* First name: Yaoyao
- Last name: Liu
* Title: Mr.
Look like
  • First name: Yaoyao
  • Last name: Liu
  • Title: Mr.

Multi-level unordered

Syntax
* Python
    * Tensorflow
        * slim
Look like
  • Python
    • Tensorflow
      • slim

Ordered

Syntax

Just add a dot and a space after the number. However it may not seem obvious enough.

Famous social media:

1. FB
2. IG
3. WeChat
Look like

Famous social media:

  1. FB
  2. IG
  3. WeChat

Multi-level ordered

Like unordered lists, ordered lists also have a multi-level structure.

Syntax
1. First
   1. Second
      1. Third
Look like
  1. First
    1. Second
      1. Third

Task Lists

Syntax
- [x] item 1
- [x] item 2
- [x] item 3
- [ ] itme 4
- [ ] item 5
- [ ] item 6
Look like
  • item 1
  • item 2
  • item 3
  • itme 4
  • item 5
  • item 6

Tip:

You may use this syntax in GitHub’s issue to check or uncheck the checkbox in real time without having to modify the original version of the issue.

Blockquotes

Syntax
As Grace Hopper said:
> I’ve always been more interested
> in the future than in the past.
Look like

As Grace Hopper said:

I’ve always been more interested
in the future than in the past.

Multi-level blockquotes

Syntax
> Asia
>> China
>>> Beijing
>>>> Haidian
>>>>> Tsinghua
Look like

Asia

China

Beijing

Haidian

Tsinghua

Fenced code blocks

Syntax

With GFM you can wrap your code with three back quotes to create a code block without the leading spaces. Add annoptional language identifier and your code will get syntax highlighting.

Look like

public static void main(String[]args){} //Java
int main(int argc, char *argv[]) //C
echo "hello GitHub" #Bash
document.getElementById("myH1").innerHTML="Welcome to my Homepage"; //javascipt
string &operator+(const string& A,const string& B) //cpp

Tables

First HeaderSecond Header
Content cell 1Content cell 2
Content column 1Content column 2

Align

You may specify alignment like this:

Align leftCenteredAlign right
col 3 issome wordy text$1600
col 2 iscentered$12
zebra stripesare neat$1

Mix with other syntax

Most GFM syntax can be applied in the contents of the table cell, e.g.

Use strikethrough, italic, etc.
NameContent
HelpDisplay the help window.
CloseCloses a window
Embed an image (link) in the table
ImgText
baiduBaidu

Emoji

GFM syntax supports adding emojis, and entering different symbol codes (characters surrounded by two colons) can display different emoticons.

e.g.:blush:,look like?。

You may check the codes for different emojis using this link: http://www.emoji-cheat-sheet.com

But this page is loaded very slowly every time. So I sorted it into this repo, you can view it directly here.emoji

diff syntax

In the version control system, the function of diff is indispensable, i.e., the addition and deletion of a file content is displayed.
The diff effect that can be displayed in GFM. Green is for new, while red is for deleted.

Syntax

The syntax is similar to code fenced code blocks, except that the diff is written after the three backticks.
And in the content, the beginning of + indicates the addition, and the beginning of - indicates the deletion.

Look like
+ Hello world!
- This is useless.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
系统根据B/S,即所谓的电脑浏览器/网络服务器方式,运用Java技术性,挑选MySQL作为后台系统。系统主要包含对客服聊天管理、字典表管理、公告信息管理、金融工具管理、金融工具收藏管理、金融工具银行卡管理、借款管理、理财产品管理、理财产品收藏管理、理财产品银行卡管理、理财银行卡信息管理、银行卡管理、存款管理、银行卡记录管理、取款管理、转账管理、用户管理、员工管理等功能模块。 文中重点介绍了银行管理的专业技术发展背景和发展状况,随后遵照软件传统式研发流程,最先挑选适用思维和语言软件开发平台,依据需求分析报告模块和设计数据库结构,再根据系统功能模块的设计制作系统功能模块图、流程表和E-R图。随后设计架构以及编写代码,并实现系统能模块。最终基本完成系统检测和功能测试。结果显示,该系统能够实现所需要的作用,工作状态没有明显缺陷。 系统登录功能是程序必不可少的功能,在登录页面必填的数据有两项,一项就是账号,另一项数据就是密码,当管理员正确填写并提交这二者数据之后,管理员就可以进入系统后台功能操作区。进入银行卡列表,管理员可以进行查看列表、模糊搜索以及相关维护等操作。用户进入系统可以查看公告和模糊搜索公告信息、也可以进行公告维护操作。理财产品管理页面,管理员可以进行查看列表、模糊搜索以及相关维护等操作。产品类型管理页面,此页面提供给管理员的功能有:新增产品类型,修改产品类型,删除产品类型。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值