I\'m started writing some basic React code in sublime text. Here is what my syntax highlighting looks like. Its partly highlighted. Is there any suggested sublime plugin i can u
You need to install babel-sublime
plugin.
You can install it from package control
of sublime.
Here is the link - https://github.com/babel/babel-sublime
Installing babel fixes the syntax highlighting.
install
and select Package control: Install Package
Babel
and select 'Babel-Snippets'
. It will install babel in few moments.View > Syntax > Babel > Javascript
For some users, Babel
was missing in step 4. They can additionally install Babel
by following the same steps and selecting Babel
this time instead of Babel-Snippets
in step3.
Check I tested it:
I was able to solve this by setting the syntax to JSX. I didn't need to install this plugin.