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