I've installed the Babel package in Sublime Text 3 (I see it in Preferences -> Package Settings), but the syntax highlighting for a sample App.js still looks weird: enter image description here For example, I would expect the opening and closing <Text> tags to have the same color. Any idea why the syntax highlighting is not working as expected?

1 Answer 1


You have installed the package, but you‘re still using the default JavaScript syntax package (see the bottom right corner)

  1. You can temporarily switch the syntax by clicking on ”JavaScript“ in the status bar and select Babel. The same can be achieved using the ”Set Syntax“ command from the Command Palette.

  2. You can permanently switch the syntax from the main menu View > Syntax > Open all with current extension as… and select Babel

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .