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