如何将代码片段嵌入到对话中?

2024-01-05

我不知道如何将代码片段嵌入到我的对话中,如下所示:

从谷歌我找到了一些教程,例如:嵌入式代码片段简介 https://github.blog/2017-08-15-introducing-embedded-code-snippets/ / 嵌入代码片段 https://docs.github.com/en/github/managing-your-work-on-github/creating-a-permanent-link-to-a-code-snippet / 创建代码片段的永久链接 https://docs.github.com/en/github/managing-your-work-on-github/creating-a-permanent-link-to-a-code-snippet(都是github官方帮助文档)

and I tried follow them, but instead of showing nice box it shows as: enter image description here

我是否错过了什么 - 也许我必须在某个地方启用它,或者它仅适用于 github Pro 和 Staff 版本?


我找到了答案:

永久链接将仅在存储库中呈现为代码片段起源于.

在其他存储库中,永久链接代码片段将呈现为URL.

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何将代码片段嵌入到对话中? 的相关文章

随机推荐