# LESS syntax for Sublime Text Provides syntax highlighting for `.less` files, along with snippets and completions. ## Changelog **2013-10-01** * Added a setting to enable auto-insertion of semicolons (default: false). **2013-08-15** * Complete refactor based on Sublime's default CSS package. * Scope is now: `source.less`. Please update user snippets/binds accordingly. * Added CSS completions, while retaining same-file completions. * Added snippets for LESS and CSS functions. ## Installing **With the Package Control plugin:** The easiest way to install this package is through Package Control, which can be found at this site: [https://sublime.wbond.net/installation](https://sublime.wbond.net/installation) Once you install Package Control, restart ST2 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, then select `LESS` when the list appears. **Without Git:** Download the latest source zip from [github](https://github.com/danro/LESS-sublime/zipball/master) and extract the files to your Sublime Text "Packages" directory, into a new directory named `LESS`. **With Git:** Clone the repository in your Sublime Text "Packages" directory: git clone git://github.com/danro/LESS-sublime.git LESS The "Packages" directory is located at: * OS X: `~/Library/Application Support/Sublime Text 2/Packages/` * Linux: `~/.Sublime Text 2/Packages/` * Windows: `%APPDATA%/Sublime Text 2/Packages/` ## Settings Settings may be accessed through the main Sublime menu: `Preferences > Package Settings > LESS` ```js { // Boolean setting to auto-insert a semicolon after a ":" is typed. "auto_insert_semicolon": false } ``` ## Color Scheme Some snippets to use in your favorite `.tmTheme` file. ```xml name css.id scope entity.other.attribute-name.id.css settings foreground #E5D56D name css.class scope entity.other.attribute-name.class settings foreground #A0C25F name less.mixin scope entity.other.less.mixin settings foreground #98E124 name less.variable scope variable.declaration.less settings foreground #FEB55A name css.element scope keyword.control.html.elements settings foreground #DA4632 name css.string scope meta.attribute-selector.css settings foreground #FF950A ``` [Copied from my Sublime theme](https://github.com/danro/refined-theme/blob/master/Color%20Schemes/Danro.tmTheme)