Vue
Vue syntax for Sublime Text
Details
Installs
- Total 530K
- Win 297K
- Mac 155K
- Linux 79K
| Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | Oct 6 | Oct 5 | Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 11 | 21 | 19 | 23 | 12 | 8 | 9 | 15 | 10 | 15 | 16 | 10 | 6 | 11 | 22 | 15 | 19 | 5 | 7 | 9 | 4 | 17 | 9 | 9 | 19 | 10 | 13 | 8 | 23 | 20 | 19 | 12 | 23 | 8 | 13 | 10 | 18 | 25 | 13 | 13 | 8 | 7 | 16 | 12 | 22 | 10 |
| Mac | 7 | 7 | 17 | 1 | 4 | 4 | 4 | 12 | 13 | 8 | 9 | 8 | 4 | 6 | 4 | 10 | 9 | 7 | 5 | 6 | 10 | 4 | 7 | 9 | 4 | 5 | 3 | 0 | 9 | 11 | 7 | 5 | 9 | 3 | 6 | 8 | 7 | 13 | 12 | 8 | 3 | 4 | 6 | 11 | 4 | 7 |
| Linux | 3 | 6 | 3 | 9 | 4 | 8 | 5 | 6 | 7 | 8 | 5 | 2 | 1 | 4 | 6 | 5 | 6 | 8 | 5 | 5 | 8 | 7 | 8 | 8 | 7 | 6 | 3 | 3 | 4 | 8 | 8 | 10 | 4 | 5 | 8 | 4 | 5 | 7 | 9 | 12 | 5 | 5 | 5 | 7 | 3 | 12 |
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: