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