Reputation: 4333
I recently started the official reactjs tutorial and noticed that the sublime text highlighting is completely screwed.
How can i fix this?
Upvotes: 20
Views: 8254
Reputation:
Upvotes: 4
Reputation: 5353
Install babel
with the package control package, if you don't have it, get it here.
Open the package control, select install package, type babel, select it and press enter.
Setting as the default syntax
To set it as the default syntax for a particular extension:
Setting a Color Scheme
Babel comes bundled with Next and Monokai from Benvie/JavaScriptNext.tmLanguage. Select one from Preferences -> Color Scheme -> Babel
Upvotes: 42
Reputation: 19113
Install babel
via the package control. It'll fix the syntax highlighting and adds few more features.
check https://packagecontrol.io/packages/Babel
Upvotes: 2
Reputation: 251
Installing the following sublime package should fix those problems:
https://github.com/babel/babel-sublime
Upvotes: 2