Skip to content

Commit 428d20a

Browse files
authored
Merge pull request #2 from SublimeText/feature/standalone
Establish this repo as a stand-alone package for ST4
2 parents 55598b8 + b115287 commit 428d20a

File tree

4 files changed

+209
-672
lines changed

4 files changed

+209
-672
lines changed

README.md

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# Vue Syntax Highlight
22

3-
**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.
44

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

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

1011
<p align="center">
1112
<img width="809px" src="https://raw.githubusercontent.com/vuejs/vue-syntax-highlight/new/samples/screenshot.png">
@@ -18,20 +19,6 @@ Sublime Text Syntax highlighting for single-file [Vue.js](http://vuejs.org) comp
1819

1920
**NOTE:** You still need to install corresponding packages for pre-processors (e.g. Pug, SASS, CoffeeScript) to get proper syntax highlighting for them.
2021

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.
34-
3522
### License
3623

3724
[MIT](http://opensource.org/licenses/MIT)

0 commit comments

Comments
 (0)