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 16K
  • Win 6K
  • OS X 7K
  • Linux 3K
Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1
Windows 2 8 10 11 10 14 12 8 5 11 7 16 15 15 10 6 5 10 4 7 15 12 8 6 10 9 10 4 13 8 8 10 13 10 11 4 8 7 12 8 11 8 4 5 13 13
OS X 4 1 7 8 9 8 15 4 5 10 14 10 12 14 3 4 9 13 9 9 8 10 9 3 9 10 12 13 10 5 10 13 14 21 5 7 7 12 20 13 13 18 3 8 13 12
Linux 1 0 1 9 9 4 3 4 0 4 7 4 3 2 0 3 5 7 17 6 5 5 3 5 2 3 2 7 0 0 6 5 7 6 6 1 2 4 4 2 4 5 2 1 6 11

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