Vue
Vue syntax for Sublime Text
Details
Installs
- Total 529K
- Win 296K
- Mac 154K
- Linux 78K
| Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | Aug 6 | Aug 5 | Aug 4 | Aug 3 | Aug 2 | Aug 1 | Jul 31 | Jul 30 | Jul 29 | Jul 28 | Jul 27 | Jul 26 | Jul 25 | Jul 24 | Jul 23 | Jul 22 | Jul 21 | Jul 20 | Jul 19 | Jul 18 | Jul 17 | Jul 16 | Jul 15 | Jul 14 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 12 | 15 | 12 | 12 | 7 | 4 | 9 | 12 | 22 | 16 | 16 | 9 | 9 | 21 | 19 | 17 | 23 | 22 | 5 | 10 | 23 | 13 | 18 | 21 | 17 | 6 | 9 | 17 | 17 | 19 | 10 | 13 | 17 | 8 | 26 | 27 | 29 | 13 | 22 | 8 | 8 | 14 | 15 | 11 | 24 | 11 |
| Mac | 8 | 10 | 8 | 5 | 7 | 3 | 9 | 7 | 6 | 7 | 18 | 3 | 4 | 10 | 5 | 12 | 5 | 11 | 9 | 6 | 12 | 8 | 12 | 12 | 9 | 12 | 3 | 5 | 11 | 5 | 6 | 10 | 2 | 4 | 7 | 17 | 15 | 10 | 8 | 6 | 7 | 7 | 11 | 9 | 17 | 5 |
| Linux | 12 | 11 | 11 | 6 | 7 | 5 | 6 | 7 | 11 | 6 | 3 | 8 | 5 | 4 | 3 | 7 | 5 | 10 | 6 | 8 | 8 | 5 | 6 | 8 | 3 | 1 | 5 | 9 | 2 | 5 | 10 | 10 | 7 | 7 | 7 | 6 | 9 | 8 | 6 | 7 | 2 | 8 | 7 | 8 | 6 | 11 |
Readme
- Source
- raw.githubusercontent.com
Vue
Sublime Text Syntax highlighting for single-file Vue.js components based on its HTML, CSS, JavaScript, TypeScript, JSX, TSX and HAML syntaxes.

The main branch targets Sublime Text 4.
For Sublime Text 2 compatible package using .tmlanguage files, see st2 branch.
For Sublime Text 3 (3153+) compatible package using .sublime-syntax files, see st3153 branch.
This repository is a fork of vuejs/vue-syntax-highlight with focus on providing syntax highlighting only for Sublime Text.
Installation
Package Control
The easiest way to install is using Package Control. It's listed as Vue.
- Open
Command Paletteusing ctrl+shift+P or menu itemTools → Command Palette... - Choose
Package Control: Install Package - Find
Vueand hit Enter
Manual Install
- Download appropriate Vue-5.0.0-st4xxx.sublime-package for your Sublime Text build.
The
st4xxxsuffix denotes the least required ST build for the sublime-package to work. - Rename it to Vue.sublime-package
- Copy it into Installed Packages directory
[!NOTE]
To find Installed Packages…
- call Menu > Preferences > Browse Packages..
- Navigate to parent folder
Requirements
- Vue 4.0.0+ requires Sublime Text 4107+
Syntax highlighting in
<style>tags is powered by:Syntax highlighting in
<script>tags is powered by:- Babel
- CoffeeScript
- LiveScript
- JavaScript (from Sublime Text)
- TypeScript (from Sublime Text)
- JSX/TSX (from Sublime Text)
Syntax highlighting in
<template>tags is powered by:
Troubleshooting
§1 Syntax Definition Parse Errors
Vue extends Sublime Text's HTML syntax definition.
If Vue syntax highlighting doesn't work and console displays syntax errors in Vue Component.sublime-syntax, please make sure to remove any out-dated syntax override.
Steps:
- call Menu > Preferences > Browse Packages..
- Look for HTML folder
- Remove it or at least delete any syntax definition in it.
§2 Scripts are not correctly highlighted
Vue relies on JavaScript (source.js), JSX (source.jsx),
TypeScript (source.ts) and TSX (source.tsx)
to scope script blocks and inline scripts.
Make sure to remove related out-dated syntax packages, which don't meet least compatibility requirements.
They can be identified by calling
e.g. sublime.find_syntax_by_scope("source.ts") in ST's console.
Known candidates are: