svelte-sublime
svelte-sublime copied to clipboard
💡Sublime Text syntax highlighting for Svelte 3 components
Svelte Syntax Highlighting
Sublime Text Syntax highlighting for Svelte 3 components.
Install
- Via Package Control: search for
Svelte. - Manual: clone this repo into your Sublime
Packagesfolder.
Supported Scripts
TypeScript
<script type="text/typescript"></script>
<!-- or -->
<script lang="typescript"></script>
or
<script type="text/ts"></script>
<!-- or -->
<script lang="ts"></script>
CoffeeScript
<script type="text/coffeescript"></script>
<!-- or -->
<script lang="coffeescript"></script>
LiveScript
<script type="text/livescript"></script>
<!-- or -->
<script lang="livescript"></script>
Babel
<script type="text/babel"></script>
<!-- or -->
<script lang="babel"></script>
Supported Styles
Sass
<style type="text/sass"></style>
<!-- or -->
<style lang="sass"></style>
Sass (SCSS)
<style type="text/scss"></style>
<!-- or -->
<style lang="scss"></style>
Less
<style type="text/less"></style>
<!-- or -->
<style lang="less"></style>
Stylus
<style type="text/stylus"></style>
<!-- or -->
<style lang="stylus"></style>
PostCSS
<style type="text/postcss"></style>
<!-- or -->
<style lang="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.