# Syntax highlighting in chat doesnt work for Svelte

**URL:** <https://forum.cursor.com/t/syntax-highlighting-in-chat-doesnt-work-for-svelte/149>\
**Category:** Bug Reports\
**Created:** [August 25, 2023, 12:07pm UTC](https://forum.cursor.com/t/syntax-highlighting-in-chat-doesnt-work-for-svelte/149 "2023-08-25T12:07:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alefalfa](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@alefalfa](https://forum.cursor.com/u/alefalfa)\
**Post date:** [August 25, 2023, 12:07pm UTC](https://forum.cursor.com/t/syntax-highlighting-in-chat-doesnt-work-for-svelte/149/1 "2023-08-25T12:07:21Z")

</div>

When I ask the chat questions about Svelte the code snippts it returns dont have syntax highlighting and are just green like comments

---

<div class="post-metadata">

**Author:** ![alefalfa](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@alefalfa](https://forum.cursor.com/u/alefalfa)\
**Post date:** [August 25, 2023, 12:16pm UTC](https://forum.cursor.com/t/syntax-highlighting-in-chat-doesnt-work-for-svelte/149/2 "2023-08-25T12:16:03Z")

</div>

I was able to fix this by going toe More \> Rules for AI and setting the prompt to:  
“Always use javascript syntax highliting in your code blocks”
