The Wayback Machine - https://web.archive.org/web/20200323080854/https://github.com/vuejs/vue-syntax-highlight
Skip to content
💡 Sublime Text syntax highlighting for single-file Vue components
Branch: master
Clone or download

Latest commit

Latest commit 6d40594 Feb 20, 2019

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
samples fix scss highlight (close #52) Feb 28, 2018
.gitignore
LICENSE Update license (#55) Jun 6, 2016
README.md
vue.YAML-tmLanguage TypeScript support May 18, 2019
vue.sublime-settings Add support for single quotes for embedded languages (#88) Apr 17, 2017
vue.tmLanguage TypeScript support May 18, 2019

README.md

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

You can’t perform that action at this time.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.