Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在README.md的Github列表项中正确缩进代码_Github_Readme - Fatal编程技术网

在README.md的Github列表项中正确缩进代码

在README.md的Github列表项中正确缩进代码,github,readme,Github,Readme,我正在为我在github中的回购创建README.md文件,但是我不能缩进代码块,因为我的列表项从左侧缩进,我尝试从底部缩进,我希望这段代码以列表项缩进开始 * list * Item one * ``` codes here..``` 而且它也不起作用:(不知道为什么 跳过一行并缩进八个空格。八个空格将触发代码块 名单 项目一 项目三 以上是 * List * Item one * ``` This is a code bloc

我正在为我在github中的回购创建
README.md
文件,但是我不能缩进代码块,因为我的列表项从左侧缩进,我尝试从底部缩进,我希望这段代码以列表项缩进开始

* list
  * Item one
  * ``` codes here..```
而且它也不起作用:(不知道为什么

跳过一行并缩进八个空格。八个空格将触发代码块

  • 名单
    • 项目一
    • 项目三
以上是

 * List
    * Item one
    * ```
      This is
      a code block
      I had to manually indent these lines
      ```
    * Item three
这有帮助吗?

  • 名单
    • 项目一
    • 项目三
以上是

 * List
    * Item one
    * ```
      This is
      a code block
      I had to manually indent these lines
      ```
    * Item three

这有帮助吗?

您需要添加空行以使其能够使用8个空格。现在,因为您的
项目1
中已经有4个空格,您需要添加12个空格(4+8=12),如下所示

然后看起来像:

  • 名单
    • 项目一

        codes here..
      

您需要添加空行以使其能够使用8个空格。现在,由于您的
项目1
中已经有4个空格,您需要添加12个空格(4+8=12),如下所示

然后看起来像:

  • 名单
    • 项目一

        codes here..