ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Babel

by babel ALL Top 100

Syntax definitions for ES6 JavaScript with React JSX extensions.

Details

  • 11.2.0
    10.0.7
  • babeljs.​io
  • github.​com
  • 1 year ago
  • 1 hour ago
  • 10 years ago

Installs

  • Total 800K
  • Win 368K
  • Mac 298K
  • Linux 134K
Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 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
Windows 3 22 8 12 15 11 22 23 15 7 11 18 18 15 16 25 19 10 15 13 18 14 16 16 11 20 14 15 15 10 8 20 15 13 18 16 12 5 12 14 18 16 14 13 12 17
Mac 2 2 3 1 6 6 8 6 9 4 9 6 3 1 6 6 5 5 4 7 1 6 6 4 5 9 7 8 10 7 6 3 4 6 7 7 4 2 1 1 9 5 1 2 3 1
Linux 0 9 3 4 4 3 5 6 4 0 4 3 5 3 6 1 5 1 7 2 6 2 4 2 5 2 6 4 8 10 7 3 4 3 7 3 7 2 3 3 4 2 4 3 0 7

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:

  1. Open a file with that extension,
  2. From the View menu, select SyntaxOpen all with current extension as…BabelJavaScript (Babel)
  3. 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

babel-sublime-vs-built-in-jsx

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.