如何在我的博客文章中使用 stackoverflow 样式标记?
在撰写技术帖子时,我已经非常习惯 StackOverflow 提供的功能。我最喜欢的功能是
4 spaces which you can use to indent a <pre> style code block
可以用来格式化内联代码的反引号
,以及自动颜色语法突出显示。
我相信代码突出显示是通过谷歌的“代码美化”完成的,但我不确定其他格式。就是这么简单!
如何在我的博客上使用这种格式?
I've gotten really used to the features StackOverflow provides while writing technical posts. My favorite features are the
4 spaces which you can use to indent a <pre> style code block
And the backticks you can use to format code inline
, and also the automatic color syntax highlighting.
I believe the code highlighting is done via google's 'code prettify' but I'm not sure about the other formatting. It's just so easy!
How can I use this formatting on my blog?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信 StackOverflow 使用 pagedown。 文档似乎通过示例很好地总结了这一点,包括演示。
I believe StackOverflow uses pagedown. The documentation seems to sum it up pretty well with examples, including a demo.