Hi!
I’m experiencing an issue in Google AI Studio: during the last few days the editor stopped displaying generated code inside proper syntax-highlighted code blocks.
Previously, AI Studio always formatted responses using fenced code blocks (```), with syntax highlighting and monospaced layout. Now the model outputs code as plain text without the wrapper — which makes technical responses harder to read and visually messy.
Could you please check if this is a known UI bug or a recent change in formatting behavior?
I tested in different browsers and devices — the issue persists.
Thanks in advance!
Hi @Mickey_M3 Welcome to the forum!!!
Thanks for reporting this. I tested AI Studio and fenced code blocks with syntax highlighting are working on my end, so the issue might be specific to your account.
Please try the following steps:
Please follow these steps on your side and let me know if the problem persists. Thank you!
Hi, thanks for getting back to me!
I’ve followed all the suggested steps — clearing cache, using Incognito mode, updating the browser, logging out and back in. The issue still appears, and I’ve noticed something strange about how it behaves.
At first, code highlighting works correctly. Then, after some time, the formatting in https://aistudio.google.com/ suddenly stops rendering fenced code blocks and syntax-highlighted output, and everything is displayed as plain text.
I initially assumed it was caused by extensions or themes, but the same problem eventually started happening even in Incognito mode. To rule this out completely, I installed a separate browser specifically for AI Studio with no extensions, no plugins, no themes, a completely clean setup — and the issue still reappears after some time.
So it doesn’t look like a browser-side configuration problem.
Is it possible that this is an account-related issue, or something occurring on the AI Studio side intermittently?
I’d appreciate any insight. Thanks!
I also noticed another console error that might be related to the issue:
Error: JSON.parse: unexpected character at line 1 column 1 of the JSON data
Source map error for: chunk_editor.css.map
It looks like the editor’s source map (chunk_editor.css.map) is either corrupted or returning non-JSON content. DevTools throws a parsing error when trying to load it.
If this source map (or the chunk associated with it) fails to load correctly, it might also affect UI components responsible for rendering code blocks and syntax highlighting. This could explain why the formatting stops working after some time.
Sharing this in case it helps diagnose the root cause. Let me know if you’d like me to gather any additional logs.
Hi @Mickey_M3,
Thanks for following up!
Can you provide prompt, model name and model configuration you are using in AI Studio Chat interface?