ChatGPT Code Highlight

Dreace
2024-05-31T13:02:01Z

Add syntax highlighting for all languages in ChatGPT (using highlight.js)

ChatGPTCodeHighlight

为 ChatGPT 编写的所有语言代码增加高亮显示。支持 Highlight.js 所有的 192 种语言，与 ChatGPT 主题保持一致。

GitHub

地址：https://github.com/Dreace/ChatGPTCodeHighlight

安装

Chrome 推荐使用扩展：「Tampermonkey」

Firefox 推荐使用扩展：「Greasemonkey」

脚本地址：https://greasyfork.org/zh-CN/scripts/496646-chatgpt-code-highlight

使用

1. 使用「安装」中提到的任意一个插件安装脚本

2. 打开 https://chatgpt.com/ 进行对话

3. 查看代码高亮效果

Add syntax highlighting to all language codes written for ChatGPT. Supports all 192 languages of Highlight.js and maintains consistency with the ChatGPT theme.

GitHub

Repository: https://github.com/Dreace/ChatGPTCodeHighlight

Installation

For Chrome, it is recommended to use the extension: "Tampermonkey"

For Firefox, it is recommended to use the extension: "Greasemonkey"

Script URL: https://greasyfork.org/zh-CN/scripts/496646-chatgpt-code-highlight

Usage

1. Install the script using any of the plugins mentioned in the "Installation" section.

2. Open https://chatgpt.com/ and start a conversation.

3. Observe the code highlighting effect.