Babel
Syntax definitions for ES6 JavaScript with React JSX extensions.
Details
Installs
- Total 798K
- Win 367K
- Mac 298K
- Linux 134K
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 | Jul 13 | Jul 12 | Jul 11 | Jul 10 | Jul 9 | Jul 8 | Jul 7 | Jul 6 | Jul 5 | Jul 4 | Jul 3 | Jul 2 | Jul 1 | Jun 30 | Jun 29 | Jun 28 | Jun 27 | Jun 26 | Jun 25 | Jun 24 | Jun 23 | Jun 22 | Jun 21 | Jun 20 | Jun 19 | Jun 18 | Jun 17 | Jun 16 | Jun 15 | Jun 14 | Jun 13 | Jun 12 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 12 | 19 | 18 | 15 | 11 | 23 | 6 | 13 | 21 | 14 | 14 | 10 | 7 | 14 | 16 | 12 | 19 | 8 | 13 | 8 | 10 | 8 | 21 | 14 | 19 | 22 | 11 | 4 | 21 | 17 | 13 | 11 | 10 | 7 | 11 | 17 | 17 | 41 | 19 | 11 | 11 | 13 | 21 | 25 | 11 |
Mac | 0 | 10 | 3 | 7 | 10 | 12 | 4 | 4 | 4 | 8 | 3 | 1 | 8 | 3 | 8 | 7 | 5 | 4 | 4 | 8 | 1 | 6 | 5 | 9 | 8 | 8 | 4 | 3 | 1 | 8 | 6 | 3 | 8 | 8 | 4 | 6 | 4 | 3 | 3 | 3 | 2 | 10 | 8 | 2 | 6 | 5 |
Linux | 0 | 4 | 5 | 7 | 3 | 3 | 3 | 6 | 7 | 9 | 4 | 3 | 7 | 4 | 3 | 4 | 9 | 2 | 5 | 3 | 8 | 3 | 3 | 7 | 4 | 5 | 4 | 5 | 6 | 3 | 3 | 0 | 0 | 3 | 5 | 3 | 2 | 7 | 7 | 6 | 7 | 6 | 6 | 7 | 7 | 6 |
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.