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

Babel

by babel ALL Trending Top 100

Syntax definitions for ES6 JavaScript with React JSX extensions.

Details

  • 11.2.0
    10.0.7
  • babeljs.​io
  • github.​com
  • 2 years ago
  • 2 minutes ago
  • 10 years ago

Installs

  • Total 801K
  • Win 369K
  • Mac 299K
  • Linux 134K
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 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7
Windows 5 11 15 14 15 15 9 8 11 9 16 18 15 13 9 10 17 12 12 10 14 4 7 16 13 0 0 0 1 11 12 19 8 8 17 13 7 15 0 0 15 16 12 14 16 22
Mac 1 3 7 3 5 14 7 5 3 9 8 5 2 4 0 2 5 3 6 6 7 2 2 4 1 0 0 0 0 3 5 4 1 2 3 4 4 10 0 0 1 4 6 6 10 5
Linux 1 2 8 6 3 3 3 2 3 2 8 9 9 3 6 9 3 13 8 4 6 5 3 6 2 0 0 0 0 4 1 3 4 2 6 8 2 4 0 0 4 5 4 3 0 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:

  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.