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

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