thebaselab / codeapp

Building a full-fledged code editor for iPad
https://code.thebaselab.com
MIT License
2.95k stars 202 forks source link

Svelte Syntax Highlighting #573

Closed luni-moon closed 2 years ago

luni-moon commented 2 years ago

Currently, *.svelte files do not have syntax highlighting. I think (and many others that I have talked to and know) that Svelte and SvelteKit are a new-ish out and coming HTML and JS framework. It (for the most part) is HTML and JS syntax, so it shouldn't be too hard to implement. Thanks!

bummoblizard commented 2 years ago

Reference: https://github.com/sveltejs/language-tools

luni-moon commented 2 years ago

So, it's more than just modifying existing configurations, I see. Is there still any way to get this to work?

bummoblizard commented 2 years ago

So, it's more than just modifying existing configurations, I see. Is there still any way to get this to work?

The usual way to get it work is extracting relevant files from existing vscode extension. For example, these files contain the syntax definition: https://github.com/thebaselab/codeapp/tree/main/CodeApp/monaco-textmate.bundle/grammars

luni-moon commented 2 years ago

Ah, okay.

bummoblizard commented 2 years ago

Simulator Screen Shot - iPad Air (5th generation) - 2022-09-19 at 20 46 54