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 12K
  • Win 5K
  • OS X 5K
  • Linux 2K
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 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10
Windows 4 10 20 15 9 19 7 10 5 12 13 13 9 8 8 5 14 8 16 10 10 5 11 9 9 14 17 13 4 9 14 8 21 12 10 9 4 11 10 9 12 20 14 11 7 14
OS X 3 3 12 26 14 16 11 3 9 11 7 19 9 18 7 5 6 6 19 16 15 4 9 8 10 17 18 6 9 4 11 21 13 15 14 6 7 9 16 15 14 22 11 8 12 13
Linux 1 7 2 8 2 7 7 5 3 1 9 9 6 9 8 3 1 4 8 6 7 4 1 6 3 6 7 4 4 3 3 10 4 9 2 2 2 4 1 6 4 8 2 5 3 7

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