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
  • 24 minutes ago
  • 10 years ago

Installs

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

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.