You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Note**: the `st4` branch hosts the new syntax that only works in Sublime build > 4107.
3
+
Sublime Text Syntax highlighting for single-file [Vue.js](http://vuejs.org) components.
4
4
5
-
* For Sublime Text 2 support (`.tmlanguage` files), see `master` branch.
6
-
*For Sublime Text 3 support, see `new` branch.
5
+
The `main` branch targets Sublime Text 4.
6
+
For the Sublime Text 2 and 3 support (`.tmlanguage` files), see `st2` branch.
7
7
8
-
Sublime Text Syntax highlighting for single-file [Vue.js](http://vuejs.org) components (enabled by [vue-loader](https://github.com/vuejs/vue-loader) or [vueify](https://github.com/vuejs/vueify)).
8
+
This repository is a fork of [vuejs/vue-syntax-highlight](https://github.com/vuejs/vue-syntax-highlight)
9
+
with a focus on providing syntax highlighting only for Sublime Text.
@@ -18,20 +19,6 @@ Sublime Text Syntax highlighting for single-file [Vue.js](http://vuejs.org) comp
18
19
19
20
**NOTE:** You still need to install corresponding packages for pre-processors (e.g. Pug, SASS, CoffeeScript) to get proper syntax highlighting for them.
20
21
21
-
### Enabling JSX Highlighting
22
-
23
-
The `<script>` block uses the syntax highlighting currently active for you normal `.js` files. To support JSX highlighting inside Vue files:
24
-
25
-
1. Install and set [Babel javascript highlighting package](https://packagecontrol.io/packages/Babel), which supports JSX, as your default JS highlighting.
26
-
27
-
2. Explicitly disable Sublime's default `JavaScript` package. This allows the Babel package to be applied the embedded `<script>` in `*.vue` files. You may need to restart Sublime for this to take effect.
28
-
29
-
### Development
30
-
31
-
- The development of this syntax relies on the [YAML-Macros](https://github.com/Thom1729/YAML-Macros) package. You can install it from Package Control.
32
-
33
-
- Do not edit `Vue Component.sublime-syntax` directly. Work in `Vue Component.sublime-syntax.yaml-macros` instead. Once done editing, run "Build With: YAML Macros" from Sublime's command palette. This will update the actual `Vue Component.sublime-syntax` file.
0 commit comments