Add syntax highlighting to code contained within 3 backticks

When chatting with ChatGPT, any code that I send through that is contained in 3 backticks does not get syntax highlighting applied.

As a result, it’s really hard to read the code that I have submitted (when i l read it later).

Conversely, ChatGPT responses that include code do have syntax highlighting applied.

Please add syntax highlighting to code that is submitted by users in chats and contained within 3 backticks (the standard characters to use for code blocks).

‘highlight.js’ is a long-standing project that should do the job.

2 Likes

Note The feature that code in queries has syntax highlighting was already working, but is currently broken.

bug