Markdown代码

Markdown代码

如果是段落上的一个函数或片段的代码可以用反引号把它包起来(`),例如:

printf() 函数

代码区块

代码区块使用 4 个空格或者一个制表符(Tab) 键;

public class test{
    public static void main(String[] args) {
        System.out.println("hello world!");
    }
}

也可以用 ``` 包裹一段代码,并指定一种语言(也可以不指定);

public class test{
    public static void main(String[] args) {
        System.out.println("hello world!");
    }
}
原文地址:https://www.cnblogs.com/momo-88/p/13254796.html