ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

LESS

by danro ST2/ST3 Top 25

LESS syntax highlighting for Sublime Text.

Details

Installs

  • Total 494K
  • Win 241K
  • OS X 183K
  • Linux 70K
Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4
Windows 175 187 245 251 248 129 149 243 237 258 229 254 116 130 232 220 281 300 255 141 146 246 291 233 277 243 130 127 213 235 272 244 276 151 142 186 235 232 268 254 150 166 223 260 288 280
OS X 67 84 99 115 95 34 53 79 108 92 86 101 37 50 97 101 110 106 114 42 47 82 92 104 121 101 45 45 77 104 115 102 118 44 37 94 118 113 112 139 56 48 84 109 123 110
Linux 24 39 47 43 32 20 16 40 38 40 42 33 15 18 28 42 41 29 40 23 26 26 37 34 35 31 24 26 37 39 44 51 39 26 21 34 45 40 56 42 20 21 41 47 44 43

Readme

Source
raw.​githubusercontent.​com

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

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 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

{
  // 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.

<dict>
  <key>name</key>
  <string>css.id</string>
  <key>scope</key>
  <string>entity.other.attribute-name.id.css</string>
  <key>settings</key>
  <dict>
    <key>foreground</key>
    <string>#E5D56D</string>
  </dict>
</dict>
<dict>
  <key>name</key>
  <string>css.class</string>
  <key>scope</key>
  <string>entity.other.attribute-name.class</string>
  <key>settings</key>
  <dict>
    <key>foreground</key>
    <string>#A0C25F</string>
  </dict>
</dict>
<dict>
  <key>name</key>
  <string>less.mixin</string>
  <key>scope</key>
  <string>entity.other.less.mixin</string>
  <key>settings</key>
  <dict>
    <key>foreground</key>
    <string>#98E124</string>
  </dict>
</dict>
<dict>
  <key>name</key>
  <string>less.variable</string>
  <key>scope</key>
  <string>variable.declaration.less</string>
  <key>settings</key>
  <dict>
    <key>foreground</key>
    <string>#FEB55A</string>
  </dict>
</dict>
<dict>
  <key>name</key>
  <string>css.element</string>
  <key>scope</key>
  <string>keyword.control.html.elements</string>
  <key>settings</key>
  <dict>
    <key>foreground</key>
    <string>#DA4632</string>
  </dict>
</dict>
<dict>
  <key>name</key>
  <string>css.string</string>
  <key>scope</key>
  <string>meta.attribute-selector.css</string>
  <key>settings</key>
  <dict>
    <key>foreground</key>
    <string>#FF950A</string>
  </dict>
</dict>

Copied from my Sublime theme