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
  • 11 months ago
  • 23 minutes ago
  • 9 years ago

Installs

  • Total 796K
  • Win 365K
  • Mac 297K
  • Linux 133K
Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 29 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13
Windows 2 8 29 23 23 12 22 13 12 16 32 21 15 17 17 18 12 18 29 14 7 12 20 18 22 13 11 17 18 17 21 41 12 15 21 22 15 24 13 19 16 14 19 20 13 27
Mac 0 3 6 10 4 5 2 5 8 7 9 5 7 3 4 10 9 11 10 2 12 7 9 14 8 12 5 6 7 4 9 5 8 4 2 4 5 14 6 9 2 8 6 8 7 4
Linux 2 1 5 10 4 2 3 3 6 1 5 4 4 6 1 2 7 10 3 2 0 4 7 4 3 11 3 4 9 6 2 5 5 4 4 3 2 2 4 3 5 3 3 0 3 5

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.