# sublime-swig Syntax highlighting for Swig Templates in Sublime Text. ## Installation ### via Package Control (Recommended) [Package Control](http://wbond.net/sublime_packages/package_control) is a package manager for Sublime Text 2 & 3. If you don't already have it installed, follow the [installation instructions here](https://sublime.wbond.net/installation). Once Package Control is installed, restart Sublime and follow these steps: * Open the Command Pallette (`cmd + shift + p` on OS X / Linux or `ctrl + shift + p` on Windows) * Type "install" and select "Package Control: Install Package" * Type "swig" and press Enter All done! Package Control will automatically update the package whenever there's a new version. ### manually (You'll need to update it manually) Go to `Sublime Text 3/Packages` and: ```bash git clone https://github.com/jonschlinkert/sublime-swig.git . ``` Next in Sublime Text, from the toolbar select the following: `View > Syntax > Open all with current extension as... > Swig`. ## Examples ### Basic highlighting ![image](https://f.cloud.github.com/assets/383994/1143034/509540c0-1d12-11e3-8e06-f6ec6bcd651e.png) ### With YAML front matter ![image](https://f.cloud.github.com/assets/383994/1143037/8922ec9e-1d12-11e3-91f9-e0bcff20e0b8.png) ## Author **Jon Schlinkert** + [http://twitter.com/jonschlinkert](http://twitter.com/jonschlinkert) + [http://github.com/jonschlinkert](http://github.com/jonschlinkert) ## Copyright and license Copyright (c) 2015 Jon Schlinkert Licensed under the [MIT License](./LICENSE-MIT) (MIT)