Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

syntax highlighting for JSX not working in sublime text 3

I am using sublime text for react.js development and everything is fine but the syntax highlighting for the inline code inside html files as shown in line number 18.

enter image description here

note that syntax highlighting works fine within example.js that was wired up in line number 16

like image 448
Hesham Adel Avatar asked Nov 30 '22 09:11

Hesham Adel


1 Answers

You need to select Javascript (Babel) for the language in the bottom right corner:

enter image description here

like image 172
Eric Conner Avatar answered Dec 05 '22 04:12

Eric Conner