0

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

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

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.