Babel
Syntax definitions for ES6 JavaScript with React JSX extensions.
Details
Installs
- Total 805K
- Win 371K
- Mac 299K
- Linux 135K
May 24 | May 23 | May 22 | May 21 | May 20 | May 19 | May 18 | May 17 | May 16 | May 15 | May 14 | May 13 | May 12 | May 11 | May 10 | May 9 | May 8 | May 7 | May 6 | May 5 | May 4 | May 3 | May 2 | May 1 | Apr 30 | Apr 29 | Apr 28 | Apr 27 | Apr 26 | Apr 25 | Apr 24 | Apr 23 | Apr 22 | Apr 21 | Apr 20 | Apr 19 | Apr 18 | Apr 17 | Apr 16 | Apr 15 | Apr 14 | Apr 13 | Apr 12 | Apr 11 | Apr 10 | Apr 9 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 8 | 19 | 13 | 19 | 24 | 15 | 12 | 16 | 19 | 17 | 14 | 13 | 13 | 9 | 10 | 14 | 8 | 13 | 16 | 13 | 13 | 11 | 7 | 20 | 15 | 15 | 14 | 17 | 8 | 21 | 21 | 11 | 15 | 17 | 15 | 7 | 16 | 14 | 19 | 13 | 13 | 19 | 12 | 18 | 23 | 27 |
Mac | 2 | 3 | 5 | 8 | 4 | 3 | 2 | 3 | 8 | 6 | 9 | 9 | 4 | 1 | 4 | 5 | 4 | 3 | 6 | 5 | 5 | 6 | 2 | 3 | 7 | 2 | 5 | 6 | 2 | 3 | 9 | 5 | 7 | 8 | 4 | 0 | 6 | 3 | 7 | 7 | 12 | 6 | 1 | 6 | 7 | 2 |
Linux | 0 | 6 | 4 | 6 | 2 | 4 | 8 | 3 | 10 | 3 | 2 | 1 | 5 | 3 | 3 | 3 | 3 | 7 | 5 | 4 | 2 | 2 | 1 | 3 | 3 | 5 | 5 | 3 | 4 | 2 | 8 | 6 | 3 | 4 | 4 | 4 | 5 | 3 | 7 | 7 | 4 | 2 | 1 | 3 | 1 | 4 |
Readme
- Source
- raw.githubusercontent.com
babel-sublime
Language definition for modern JavaScript with JSX syntax, Flow typing, and Styled Components.
Installation
Find it as Babel through Package Control.
Setting as the default syntax
To set it as the default syntax for a particular extension:
- Open a file with that extension,
- From the
View
menu, selectSyntax
→Open all with current extension as…
→Babel
→JavaScript (Babel)
- Repeat this for each extension (e.g.:
.js
and.jsx
).
Setting a Color Scheme
Babel
comes bundled with Next
from Benvie/JavaScriptNext.tmLanguage. From the command palette, select UI: Select Color Scheme
and select Next
.
Screenshots
Snippets
Find them separately at babel/babel-sublime-snippets or as Babel Snippets through Package Control.
About
Under the hood, babel-sublime
's syntax definition is built using JS Custom. JS Custom is based on Sublime's core JavaScript syntax, which is in turn descended from Benvie/JavaScriptNext.tmLanguage. Special thanks go to @jgebhardt and @zpao.
Contributing
The JavaScript (Babel).sublime-syntax
file itself is generated by JS Custom and should not be manually modified — any bug fixes or enhancements to the syntax itself should go through JS Custom.
If you modify the commenting rules or Next theme, make sure to do so by editing the appropriate YAML-tmPreferences
or YAML-tmTheme
file and converting that file using PackageDev. Then, commit both the source (YAML) file and the converted (XML) file.