You can set babel syntax by following these steps.
1.go to this url https://packagecontrol.io/installation copy the code of sublime text 3 or sublime text 2 from the url
2.open sublime text editor and go to menu options of View and select the "show console"
3.then paste the code from the above url and press enter.It will install the package manager.
4.press ctrl+shift+p and type install in the input box. A list of options will come,then select the Install package option.It will install.
5.After installing the above press again ctrl+shift+p and type the "babel" and select babel in the list.It will install the babel syntax
6.to change the syntax of the page select the view menu and choose syntax/babel
source
share