Github要点高亮代码

标签 github gist

我试图在要点上突出显示几行代码,但它不起作用。

我正在尝试遵循此 link 中提到的示例

https://gist.github.com/codingdawg/36be275685d0d09e3a0140e2a4d929e6/#L10 https://gist.github.com/codingdawg/36be275685d0d09e3a0140e2a4d929e6/#L28-L33

以上两个链接都没有高亮代码。

最佳答案

几乎:-)

这里是固定链接,突出显示应该有效:

https://gist.github.com/codingdawg/36be275685d0d09e3a0140e2a4d929e6#file-soapcreateenvelopefromtemplate-java-L10

https://gist.github.com/codingdawg/36be275685d0d09e3a0140e2a4d929e6/#file-soapcreateenvelopefromtemplate-java-L28-L32

以后您可以单击边栏中的行号来查看单行。

多次单击起点,然后 shift + 单击区域突出显示的最后一行。

关于Github要点高亮代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42667207/

相关文章:

jenkins - 在 jenkins 的 github pull request 中添加评论

github - 如果删除 fork 的 Gist 会发生什么?

git - 使用 Github 网络界面或桌面应用程序将 Gist 重置或恢复到较旧的提交状态

github - 如何仅嵌入要点中的某些行?

git - 如何在我在 github.com 上 fork 的项目之上重新播放本地 Git 存储库的提交?

git - 摆脱先前的提交,移动原点/头部原点/母版

android - 将 google-services.json 提交到 GitHub

Github pull 请求 : How can I prevent "unjustified" change markings?

image - 在 Github gist 中查看图像文件的推荐步骤不起作用

javascript - 相同数组不同结果