Last updated on the .
Most devs are familiar with installing software packages on their systems via package managers, but did you know, if you’re using Sublime Text 2, you can do the same with your text editor too?
Sublime Package Control
Will Bond has created a delightful tool for managing packages; packages can include syntax highlighters for preprocessors such as LESS.
Installation of the Sublime Text 2 Package Manager is done through the Sublime Text console. This is accessed via the ctrl+` shortcut. Once open, paste the following command into the console:
Installing a package
Let’s go ahead and install a package or two to demonstrate just how easy it is.
LESS syntax highlighter
After you have installed Package Control, restart Sublime Text 2 and bring up the Command Palette (
Command+Shift+p on OS X,
Control+Shift+p on Linux/Windows). Select Package Control: Install Package; wait while Package Control fetches the latest package list; type in LESS when the list appears, then hit enter to install.
Sublime Text Themes / Colour Schemes
Bring up the Command Palette again (
Control+Shift+p) and goto Install Package. Search for Dayle Rees Color Schemes and hit enter to install.
Goto Preferences -> Color Scheme to select your new colour scheme.