ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Vue Syntax Highlight

by vuejs ALL Top 100

💡 Sublime Text syntax highlighting for single-file Vue components

Details

Installs

  • Total 373K
  • Win 210K
  • Mac 111K
  • Linux 51K
Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 29 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17
Windows 149 155 154 169 108 143 164 138 168 170 169 114 128 163 165 182 178 166 90 106 135 148 186 175 151 78 93 159 174 175 160 169 94 103 133 155 137 170 136 85 110 138 167 164 158 150
Mac 74 109 88 78 40 47 61 66 74 94 85 45 55 45 62 87 76 88 59 53 68 61 79 74 59 33 42 74 71 71 90 67 33 40 57 79 80 73 65 42 49 61 61 91 86 81
Linux 46 48 49 57 33 35 36 59 37 58 53 29 35 43 45 50 65 54 32 29 51 54 40 57 48 30 36 26 44 47 44 45 29 34 35 39 49 58 41 26 34 34 47 44 60 45

Readme

Source
raw.​githubusercontent.​com

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).

screenshot

Install

  • Via Package Control: search for Vue Syntax Highlight.
  • Manual: clone this repo into your Sublime Packages folder.

NOTE: You still need to install corresponding packages for pre-processors (e.g. Jade, SASS, CoffeeScript) to get proper syntax highlighting for 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.

License

MIT