Structured Text - Support Svelte language in code block

Hi, I believe it would be great to add support for Svelte to the list of languages in the code block of Structured Text.

Hi @yoann.teruel,

Welcome to Dato, and thanks for the suggestion!

Unfortunately, this one might be difficult because it doesn’t look like the syntax highlighter we use supports Svelte :frowning: There is an unofficial third-party one, but it hasn’t been updated in several years.

Let’s leave this feature request open and see if enough people want it? We’d have to write our own parser or switch to a different syntax highlighter though, which won’t be easy.

In the meantime, if this is something you urgently need, I think you can override our code formatter with one of your own choosing by making a DatoCMS plugin: Structured Text customizations — Plugin SDK — DatoCMS

Sorry about that!