Skip to content

Instantly share code, notes, and snippets.

View Bit-Blazer's full-sized avatar

Kamil Hassan Bit-Blazer

View GitHub Profile
@alexchexes
alexchexes / chatgpt-better-syntax-highlighting.user.js
Last active February 20, 2026 22:57
ChatGPT improved syntax highlighting (with support for Vue.js code)
// ==UserScript==
// @name ChatGPT Better Syntax Highlighting
// @namespace http://tampermonkey.net/
// @version 2026-02-20.2
// @updateURL https://gist.github.com/alexchexes/273ad5fa78a018f00ad2aeb7f9494a5c/raw/chatgpt-better-syntax-highlighting.user.js
// @downloadURL https://gist.github.com/alexchexes/273ad5fa78a018f00ad2aeb7f9494a5c/raw/chatgpt-better-syntax-highlighting.user.js
// @description Automatically highlights unhighlighted code blocks with auto language recognition (via highlightjs). Handles chat switching, applies syntax highlighting to new messages on user interaction ("send" click or Enter keypress). Allows to re-highlight the block by clicking on its title.
// @author alexchexes
// @match https://chat.openai.com/*
// @match https://chatgpt.com/*