Skip to content

Conversation

@shenfeng
Copy link
Contributor

你好:

代码高亮,利于阅读一些。原来的md文件里面没有高亮,可能有别的原因。
所以先仅修改了一个文件,发pull request给你看一下。

高亮后的效果: https://github.com/shenfeng/build-web-application-with-golang/blob/master/01.2.md

如果你觉得高亮后不错,我们可以讨论看怎么把所有的代码都高亮。

@fannheyward
Copy link

+1

astaxie added a commit that referenced this pull request Jan 16, 2013
代码高亮,利于阅读
@astaxie astaxie merged commit 8c5f5af into astaxie:master Jan 16, 2013
@shenfeng
Copy link
Contributor Author

那我需要把其它的也改了么? 还是你 一边写一边 加上 代码高亮

@astaxie
Copy link
Owner

astaxie commented Jan 16, 2013

发现你代码高亮修改的时候有点问题,都缩进了一个tab,如果改成高亮模式估计还是有点问题啊

@shenfeng
Copy link
Contributor Author

嗯。是的。 原因是:

markdown 如果空4格就建成pre或者code了: 保留了代码里面的锁进。

如果加了三个`, 那4格空格就被保留了。

可以去掉所有的4格空格, 用三个` 来表示代码开始结束的地方。

astaxie added a commit that referenced this pull request Sep 13, 2016
代码高亮,利于阅读
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants