StackOverflow 用于格式化代码片段的代码在哪里?
Where is the code StackOverflow uses to format code snippets?
我正在尝试了解 Whosebug 如何格式化 javascript 和 html 代码,这些代码在此处 被询问,因此我可以在我的网站上执行此操作。
该问题已关闭,因为它过于宽泛,所以我正在创建一个更具体的问题。
哪个 repo 用于保存为 whosebug.com 进行格式化的代码?
是否可以重复使用,好吧,太宽泛了...
我进行了 google 搜索
https://www.google.com/search?q=what+repo+is+used+to+format+code+for+whosebug.com
并没有显示任何有用的信息。
我去 GitHub 搜索了 Whosebug,发现 StackExchange 有 32 个 public 存储库,所以我很接近。
如果有人知道哪一个是正确的,那么你已经回答了这个问题。
顺便说一句,我认为它是 pagedown(在 https://github.com/StackExchange/pagedown)。
如果我继续挖掘,我可能会解决这个问题,但我希望这对其他人有所帮助。
它使用Highlight.js per the comment on this answer, and according to here. It used to use Google Prettify, according to this。
我正在尝试了解 Whosebug 如何格式化 javascript 和 html 代码,这些代码在此处
该问题已关闭,因为它过于宽泛,所以我正在创建一个更具体的问题。
哪个 repo 用于保存为 whosebug.com 进行格式化的代码?
是否可以重复使用,好吧,太宽泛了...
我进行了 google 搜索
https://www.google.com/search?q=what+repo+is+used+to+format+code+for+whosebug.com
并没有显示任何有用的信息。
我去 GitHub 搜索了 Whosebug,发现 StackExchange 有 32 个 public 存储库,所以我很接近。
如果有人知道哪一个是正确的,那么你已经回答了这个问题。
顺便说一句,我认为它是 pagedown(在 https://github.com/StackExchange/pagedown)。
如果我继续挖掘,我可能会解决这个问题,但我希望这对其他人有所帮助。
它使用Highlight.js per the comment on this answer, and according to here. It used to use Google Prettify, according to this。