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 439K
  • Win 207K
  • OS X 168K
  • Linux 64K
Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4
Windows 28 251 240 152 139 203 228 231 282 222 132 138 204 259 256 247 176 82 78 173 190 193 180 174 90 134 222 232 252 280 261 118 132 193 275 240 298 248 137 145 225 233 268 297 222 149
OS X 11 132 143 58 59 90 113 135 123 143 58 63 93 123 136 111 74 35 34 81 74 92 81 84 47 47 91 92 124 108 154 57 56 99 129 141 140 136 61 50 118 124 125 124 88 57
Linux 3 50 42 35 23 49 54 46 51 56 26 32 38 45 46 62 37 13 20 30 25 49 38 37 17 23 33 43 25 35 46 21 30 43 46 41 48 44 45 36 54 40 41 42 26 45

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