Skip to content

Add (way to add) Svelte language support to CodeMirror editor #211

Closed
@adrianmroz

Description

@adrianmroz

Is your feature request related to a problem?

I want to create tutorial for Svelte using tutotiralkit, but provided CodeMirror instance does not support Svelte files ie. no syntax highlighting.

Describe the solution you'd like.

Add Svelte language description to CodeMirror inside CodeMirrorEditor/languages.ts

Describe alternatives you've considered.

Good alternative is to give developer a way to customize CodeMirror instance. Would be better in the long term. On the other hand, you could take a shortcut and add Svelte support directly. Your blogpost mentions Svelte a lot and I imagine community would benefit even from such shortcut.

Additional context

I found this package: @replit/codemirror-lang-svelte which is also used by code mirror instance on learn.svelte.dev

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions