💡 Sublime Text syntax highlighting for Svelte components
By
corneliusio
Created April 24, 2018, last updated August 21, 2026.
Installations:
recent average 19 per week,
17,790 in total
Installations minus removals
Upgrades
Links
Versions
4.2.0
(>ST4142)
·
2026-08-21 16:15
3.6.0
(ST4000 - 4142)
·
2024-03-23 16:25
3.4.1
(<ST4000)
·
2021-01-18 16:55
More
-
(>ST4142)
4.1.0
·
2026-08-15 05:43
Svelte Syntax Highlighting
Sublime Text Syntax highlighting for Svelte components.

Install
- Via Package Control: search for
Svelte.
- Manual: clone this repo into your Sublime
Packages folder.
Supported Scripts
TypeScript
<script lang="typescript"></script>
<!-- or -->
<script type="text/typescript"></script>
or
<script lang="ts"></script>
<!-- or -->
<script type="text/ts"></script>
CoffeeScript
<script lang="coffeescript"></script>
<!-- or -->
<script type="text/coffeescript"></script>
LiveScript
<script lang="livescript"></script>
<!-- or -->
<script type="text/livescript"></script>
Babel
<script lang="babel"></script>
<!-- or -->
<script type="text/babel"></script>
Supported Styles
Sass
<style lang="sass"></style>
<!-- or -->
<style type="text/sass"></style>
Sass (SCSS)
<style lang="scss"></style>
<!-- or -->
<style type="text/scss"></style>
Less
<style lang="less"></style>
<!-- or -->
<style type="text/less"></style>
Stylus
<style lang="stylus"></style>
<!-- or -->
<style type="text/stylus"></style>
PostCSS
<style lang="postcss"></style>
<!-- or -->
<style type="text/postcss"></style>
NOTE: You still need to install corresponding packages for pre-processors (e.g. SASS, Typescript) to get proper syntax highlighting for them.
Special Thanks
Huge thanks to the Vue.js folks for their Vue Syntax Highlight package from which a ton of solutions for this package came.
And, obviously, the biggest thanks to Rich Harris for making something as awesome as Svelte.
License
MIT