Custom Styling for SVELTE tags in Html possible?
Answered
In a .svelte file the Html part can contain elements like
{#if expression}
...
{:else if expression}
...
{/if}
{#each items as item} ... {/each}
- {#await expression}...{:then name}...{:catch name}...{/await}
- {{#key expression}...{/key}
- {@html ...}
- {@debug ...}
- {@const ...}
Is there a way to modify the Color Scheme to have these tags displayed in a different color?
Please sign in to leave a comment.
See https://youtrack.jetbrains.com/issue/WEB-52334#focus=Comments-27-5596272.0-0
Thanks for the link! The setting for the "Custom Tag Name" affects the Svelte components elements, which is great. Still hoping for a way to set the color of the special elements in curly braces `{#if}...{/if}, {@html ...}` seperately somehow... is this possible?
The color used for those elements can be configured in `Settings (Preferences) | Editor | Color Scheme | JavaScript > Keyword`.
If you would like to have a separate setting for that please feel free to submit a feature request in https://youtrack.jetbrains.com/issues/web.