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.1.1
    10.0.7
  • babeljs.​io
  • github.​com
  • 8 months ago
  • 24 minutes ago
  • 7 years ago

Installs

  • Total 767K
  • Win 347K
  • Mac 291K
  • Linux 129K
Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21
Windows 15 39 33 45 31 45 68 55 49 38 50 62 51 40 60 63 42 45 58 44 62 57 57 45 42 70 52 81 58 50 37 33 39 72 56 50 65 46 44 46 57 46 69 72 42 35
Mac 8 24 13 23 18 13 17 30 27 14 9 11 23 29 26 19 12 13 27 25 22 25 17 13 11 21 24 31 33 17 15 11 18 13 25 33 19 15 13 20 25 26 26 27 15 15
Linux 4 14 10 12 10 5 10 14 12 4 18 15 14 9 12 12 6 18 19 13 16 13 8 10 9 19 13 7 6 12 11 12 11 18 10 7 16 10 16 18 15 17 9 12 11 10

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.