- Notifications
You must be signed in to change notification settings - Fork227
💡 Sublime Text syntax highlighting for single-file Vue components
License
vuejs/vue-syntax-highlight
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Note: thest4 branch hosts the new syntax that only works in Sublime build > 4107.
- For Sublime Text 2 support (
.tmlanguagefiles), seemasterbranch. - For Sublime Text 3 support, see
newbranch.
Sublime Text Syntax highlighting for single-fileVue.js components (enabled byvue-loader orvueify).
- Via Package Control: search for
Vue Syntax Highlight. - Manual: clone this repo into your Sublime
Packagesfolder.
NOTE: You still need to install corresponding packages for pre-processors (e.g. Pug, SASS, CoffeeScript) to get proper syntax highlighting for them.
The<script> block uses the syntax highlighting currently active for you normal.js files. To support JSX highlighting inside Vue files:
Install and setBabel javascript highlighting package, which supports JSX, as your default JS highlighting.
Explicitly disable Sublime's default
JavaScriptpackage. This allows the Babel package to be applied the embedded<script>in*.vuefiles. You may need to restart Sublime for this to take effect.
The development of this syntax relies on theYAML-Macros package. You can install it from Package Control.
Do not edit
Vue Component.sublime-syntaxdirectly. Work inVue Component.sublime-syntax.yaml-macrosinstead. Once done editing, run "Build With: YAML Macros" from Sublime's command palette. This will update the actualVue Component.sublime-syntaxfile.
About
💡 Sublime Text syntax highlighting for single-file Vue components
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
