Babel
Syntax definitions for ES6 JavaScript with React JSX extensions.
Details
Installs
- Total 791K
- Win 362K
- Mac 296K
- Linux 132K
Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 12 | 22 | 26 | 24 | 24 | 18 | 27 | 45 | 21 | 17 | 19 | 21 | 30 | 30 | 33 | 20 | 18 | 16 | 22 | 27 | 21 | 29 | 8 | 19 | 21 | 22 | 28 | 26 | 18 | 15 | 15 | 20 | 41 | 46 | 22 | 17 | 20 | 25 | 31 | 27 | 23 | 31 | 20 | 17 | 16 | 49 |
Mac | 3 | 6 | 10 | 14 | 8 | 10 | 4 | 10 | 6 | 7 | 6 | 9 | 10 | 6 | 13 | 6 | 8 | 10 | 3 | 6 | 5 | 4 | 6 | 2 | 10 | 11 | 14 | 5 | 9 | 4 | 5 | 4 | 8 | 9 | 6 | 15 | 10 | 1 | 14 | 16 | 13 | 8 | 11 | 3 | 4 | 6 |
Linux | 3 | 10 | 5 | 7 | 5 | 11 | 6 | 8 | 9 | 12 | 4 | 11 | 8 | 4 | 3 | 9 | 10 | 7 | 7 | 4 | 5 | 6 | 3 | 3 | 2 | 6 | 11 | 7 | 7 | 6 | 6 | 11 | 7 | 5 | 7 | 10 | 5 | 7 | 11 | 7 | 9 | 5 | 7 | 5 | 7 | 8 |
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.