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 474K
  • Win 228K
  • OS X 178K
  • Linux 68K
May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11
Windows 343 246 228 253 268 136 149 214 271 250 273 295 131 113 216 248 251 215 273 128 162 248 281 267 301 142 142 124 250 305 285 247 284 159 168 228 259 241 276 270 156 175 247 288 285 259
OS X 83 106 108 127 121 45 54 95 109 99 100 124 42 61 94 98 114 125 112 47 53 106 118 111 137 69 48 40 87 96 116 132 146 51 58 88 112 122 118 70 47 48 95 124 103 114
Linux 27 49 49 39 43 32 28 31 38 47 41 46 28 23 50 38 43 53 37 29 21 43 42 47 55 32 28 22 36 40 47 50 61 29 19 45 48 59 58 34 18 31 22 43 41 58

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