Babel
Syntax definitions for ES6 JavaScript with React JSX extensions.
Details
Installs
- Total 806K
- Win 372K
- Mac 300K
- Linux 135K
Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | Aug 6 | Aug 5 | Aug 4 | Aug 3 | Aug 2 | Aug 1 | Jul 31 | Jul 30 | Jul 29 | Jul 28 | 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 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 2 | 10 | 12 | 9 | 9 | 14 | 9 | 11 | 18 | 14 | 14 | 13 | 8 | 17 | 10 | 16 | 18 | 12 | 4 | 10 | 16 | 14 | 18 | 19 | 14 | 12 | 5 | 12 | 16 | 13 | 13 | 12 | 11 | 7 | 9 | 16 | 18 | 18 | 9 | 5 | 12 | 21 | 13 | 10 | 13 | 20 |
Mac | 0 | 7 | 5 | 4 | 4 | 4 | 5 | 3 | 3 | 4 | 3 | 2 | 1 | 5 | 3 | 8 | 0 | 3 | 2 | 5 | 5 | 5 | 5 | 3 | 3 | 5 | 5 | 1 | 5 | 3 | 6 | 2 | 0 | 8 | 8 | 4 | 3 | 7 | 8 | 5 | 0 | 6 | 5 | 5 | 1 | 7 |
Linux | 0 | 6 | 3 | 2 | 5 | 6 | 5 | 2 | 3 | 3 | 3 | 4 | 3 | 5 | 2 | 6 | 9 | 1 | 5 | 7 | 3 | 6 | 5 | 4 | 6 | 6 | 6 | 5 | 7 | 5 | 3 | 3 | 4 | 4 | 2 | 4 | 3 | 7 | 3 | 3 | 3 | 1 | 3 | 3 | 6 | 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.