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

  • PRE 11.1.0-beta.1
    11.0.2
    10.0.7
  • babeljs.​io
  • github.​com
  • 4 weeks ago
  • 60 minutes ago
  • 7 years ago

Installs

  • Total 733K
  • Win 327K
  • Mac 282K
  • Linux 124K
Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 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
Windows 26 92 94 106 73 81 102 112 90 95 117 60 79 92 98 133 112 90 64 65 85 101 102 113 121 69 80 77 96 122 94 122 76 85 103 141 142 138 112 90 94 93 113 136 138 130
Mac 16 34 40 29 25 24 50 37 44 35 42 14 27 38 50 49 44 32 27 23 27 43 40 60 42 26 22 43 46 51 44 62 35 40 53 68 79 84 95 38 38 71 87 101 100 112
Linux 3 27 23 25 15 21 23 17 29 30 23 23 21 22 31 23 29 20 15 11 28 24 27 35 25 20 23 28 19 38 35 25 21 22 33 31 46 35 36 28 25 37 43 30 48 31

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.