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
Github “逃避”<&引用;在gedit中编辑*.md文件时_Github_Syntax Highlighting_Markdown_Gedit - Fatal编程技术网

Github “逃避”<&引用;在gedit中编辑*.md文件时

Github “逃避”<&引用;在gedit中编辑*.md文件时,github,syntax-highlighting,markdown,gedit,Github,Syntax Highlighting,Markdown,Gedit,我正在用*.md格式编写代码示例,以便在github上使用,但我目前还没有找到一种方法来逃避可能是htmlentity代码就可以了:如果您有多行代码,请将其缩进四个空格(与使用标记的StackOverflow上的做法完全相同): 因此,解决这一烦恼的唯一可行的办法是在每次出现“小于”符号后,强制注释关闭括号“你为什么不把它缩进四个空格呢?这看起来像是Gedit语法高亮的问题。你能详细说明我应该用四个空格缩进什么吗?这会在我使用github时生成。谢谢你的回答。如果有一种在gedit中缩进多行块的

我正在用*.md格式编写代码示例,以便在github上使用,但我目前还没有找到一种方法来逃避
可能是htmlentity代码就可以了:

如果您有多行代码,请将其缩进四个空格(与使用标记的StackOverflow上的做法完全相同):


因此,解决这一烦恼的唯一可行的办法是在每次出现“小于”符号后,强制注释关闭括号“你为什么不把它缩进四个空格呢?这看起来像是Gedit语法高亮的问题。你能详细说明我应该用四个空格缩进什么吗?这会在我使用github时生成
。谢谢你的回答。如果有一种在gedit中缩进多行块的有效方法,这将是一个解决方案?或者我遗漏了什么。@MorganWilde:我不太确定你在问什么。您只需高亮显示多行代码并按Tab键(或Ctrl+]),就可以缩进多行代码。缩进会产生与前面类似的结果,请参见问题。不管我以前怎么说,现在都无关紧要了。此外,github没有像以前那样突出显示代码。
```Python
i = 0
while i < 10:
    print i
```
Here is some sample Python code:

    def foo(bar, *args, **kwargs):
        print bar, args, kwargs

Here is some more text.
```Python
i = 0
while i < 10: # >
    i += 1
```

Color stays the way it should be.