Vue Syntax Highlight
💡 Sublime Text syntax highlighting for single-file Vue components
Details
Installs
- Total 492K
- Win 276K
- Mac 144K
- Linux 72K
Jan 30 | Jan 29 | Jan 28 | Jan 27 | Jan 26 | Jan 25 | Jan 24 | Jan 23 | Jan 22 | Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 33 | 37 | 26 | 34 | 24 | 29 | 28 | 22 | 16 | 20 | 20 | 22 | 31 | 41 | 37 | 22 | 18 | 42 | 23 | 49 | 48 | 41 | 26 | 20 | 31 | 47 | 44 | 48 | 27 | 25 | 20 | 38 | 48 | 35 | 29 | 37 | 13 | 20 | 29 | 30 | 37 | 40 | 35 | 24 | 25 | 30 |
Mac | 17 | 20 | 14 | 20 | 23 | 17 | 19 | 15 | 13 | 2 | 26 | 16 | 14 | 22 | 17 | 4 | 12 | 34 | 22 | 27 | 27 | 24 | 20 | 9 | 16 | 19 | 17 | 26 | 16 | 25 | 13 | 23 | 18 | 15 | 23 | 15 | 6 | 13 | 17 | 21 | 30 | 20 | 21 | 9 | 15 | 22 |
Linux | 11 | 2 | 8 | 9 | 12 | 11 | 17 | 19 | 8 | 8 | 16 | 16 | 11 | 12 | 19 | 7 | 8 | 7 | 19 | 13 | 9 | 12 | 13 | 9 | 7 | 8 | 10 | 15 | 10 | 10 | 13 | 12 | 16 | 10 | 12 | 12 | 8 | 11 | 13 | 10 | 10 | 18 | 19 | 10 | 12 | 9 |
Readme
Vue Syntax Highlight
Note: The master
branch hosts the tmLanguage
based implementation that is distributed to Sublime Text build < 3153. It is also used to power GitHub's syntax highlight of *.vue
files in linguist.
For a newer implementation of the syntax that is distributed to build >=3153, See the new branch.
Sublime Text Syntax highlighting for single-file Vue.js components (enabled by vue-loader or vueify).
Install
- Via Package Control: search for
Vue Syntax Highlight
. - Manual: clone this repo into your Sublime
Packages
folder.
Additional Installation Requirements: In order to get proper syntax highlighting for pre-processors (e.g. Jade, SASS, CoffeeScript) you will also need to install the corresponding packages for each of them.
Enabling JSX Highlighting
The <script>
block uses the syntax highlighting currently active for you normal .js
files. To support JSX highlighting inside Vue files, just set Babel javascript highlighting package, which supports JSX, as your default JS highlighting. Note you may need to explicitly disable Sublime's default JavaScript
package to make it work.