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

Simple JSX

by ccampbell ST3

Simple Sublime Text 3 JSX implementation

Labels JavaScript, JSX, React

Details

Installs

  • Total 28K
  • Win 12K
  • Mac 11K
  • Linux 5K
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 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
Windows 8 4 7 6 6 10 9 4 9 9 3 2 8 8 9 2 13 7 11 8 11 5 9 9 4 8 16 10 8 7 10 6 7 8 11 8 8 8 3 11 10 8 7 5 7 12
Mac 5 10 10 3 1 7 6 5 6 5 1 3 5 2 9 8 8 3 4 4 11 8 6 6 5 4 6 2 8 6 6 3 8 7 9 3 4 3 3 5 4 6 6 7 5 3
Linux 0 7 3 2 2 5 2 2 7 7 1 3 3 6 5 5 3 4 2 4 5 4 2 3 1 4 5 6 4 3 7 3 0 1 6 4 3 6 6 4 2 4 3 7 0 3

Readme

Source
raw.​githubusercontent.​com

Sublime JSX

This is a simple (and crude) implementation of JSX syntax highlighting for Sublime Text 3 that extends the default JavaScript patterns.

Currently all of the JSX syntax highlighting packages depend on the ES6 highlighting from Babel and/or JavaScriptNext packages which do not use the correct scopes for highlighting JavaScript files.

See here for more information:

Installation

If you are using Sublime Package Control you can press command+shift+p. Then select Package Control: Install Package and choose Simple JSX.

Usage

Highlighting should be enabled by default for files that end with a .jsx extension.

To turn on JSX highlighting for other files, open a JavaScript file containing JSX then press command+shift+p and select Set Syntax: JSX.

You can also select View -> Syntax -> Open all with current extension as… and select JSX from the top nav to enable highlighting for all files with a certain extension (.js, .jsx, etc).

Screenshots

Before

After