Improve Code Block Language Selection

Problem
When I type three backticks (```) in the ChatGPT message composer, it automatically creates a code block before I can specify the programming language.

For example, I want to write:

console.log("Hello");

However, as soon as I type the opening three backticks, the editor creates a code block. If I then type javascript, it treats it as ordinary text inside the block instead of recognizing it as the language identifier.

This makes it difficult to create syntax-highlighted code blocks directly in the composer.

Suggestion
Add an option to select the programming language after the editor automatically creates a code block.

For example:

  1. Type three backticks to create a code block.
  2. A language selector appears, allowing the user to choose JavaScript, Python, C, HTML, CSS, or another language.
  3. The selected language is applied to the code block for appropriate syntax highlighting.

This would make code formatting more intuitive and eliminate the need to work around the editor’s automatic formatting behavior.

Expected Benefit
This feature would improve the coding experience, make Markdown less of a barrier for beginners, and allow users to create properly formatted code blocks directly in ChatGPT.

I have a similar problem.

For example, I created a code block and put the text let a = 23 in it. ChatGPT desktop automatically assigns JavaScript as the language itself, but it doesn’t display this and doesn’t let me set my own. At the same time, I might, for example, intend it to be Rust, but I’ll get the assistant’s response based on the fact that it’s JavaScript.

P.S. Via File → Settings… → General → Composer → Plain text composer, you can see what the source Markdown looks like and edit it, but this is inconvenient.

I created a Github issue for this with ID# 61895. If other people experiencing this problem care to comment and/or follow it, that may be helpful.

Sorry. this system won’t let me include a link.