Syntax highlighting for HTML files #29
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
repos/svelte-sublime#29
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
How can I enable Svelte syntax highlighting for HTML files. I've tried setting the file syntax using the language menu at the bottom, but that doesn't work across all files in a project.
And it doesn't show up in the package settings just like LSP language server and other packages show up
Any help will be appreciated
@joshamaju This is a core Sublime Text feature and not part of the plugin functionality. It's easy to miss, but when looking at View > Syntax in the menu the very first/top option is Open all with current extension as.... This is where you'll want to select Svelte as the preferred syntax. This should apply to all
.htmlfiles across ALL projects. If you want something that is only configured for a single project, you'll need a plugin called Project Specific Syntax Settings. I haven't used this plugin in a while, but I assume it's still working.Hope that helps!
Just started using sublime, still trying to find my way around it. That actually solved it, Thank you.