Follow below steps to add syntax highlighting and completion for AngularJS to Sublime 3 (windows installation):
- open the Sublime console using the View Menu or shortcut [ctrl+`]. Step (2 and 3) can be skipped if Package Control already installed.
- paste below script to install the Package Control
import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())
- After the Package Control is installed, open the command palette using the Tools Menu or shortcut [ctrl + shift + p] and search for Package Install and Enter.
- Type AngularJS to install the AngularJS Package and Enter. This will install the package
- Enable AngularJS syntex using the View Menu -> Syntax -> AngularJS (HTML). A faster way is to use the command palette and search and type AngularJS.
- Start enjoying AngularJS with HTML syntax highlighting and completion!.
Advertisements