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

Simple JSX

by ccampbell ST3 Trending

Simple Sublime Text 3 JSX implementation

Labels JavaScript, JSX, React

Details

Installs

  • Total 6K
  • Win 2K
  • OS X 3K
  • Linux 959
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 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4
Windows 18 53 46 50 57 12 3 8 10 22 13 13 32 10 14 23 27 37 12 7 8 12 6 10 11 18 12 12 8 10 9 11 7 15 7 3 11 19 5 13 13 10 11 8 13 8
OS X 30 50 62 63 52 26 12 13 19 24 24 21 31 12 17 28 32 31 16 15 10 7 16 17 11 18 15 9 5 15 24 17 16 15 5 9 12 14 6 8 14 5 13 11 14 21
Linux 14 18 19 21 19 11 3 4 5 10 7 11 9 5 5 12 18 15 4 5 2 5 6 4 5 8 7 2 2 1 8 6 9 4 3 3 3 8 4 4 1 3 2 8 4 4

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