Sublime Text 2: less syntax highlighting sublime text 2

Trabla: Sublime Text 2: LESS syntax highlighting sublime text 2 ( on windows system  )


less syntax highlighting sublime text 2


This tutorial explains how to install LESS syntax  highlighting  plugin into Sublime Text 2 editor.

less syntax highlighting sublime text 2 tutorial


By default Sublime Text 2 has no support of LESS ( dynamic style sheet language ).

Solving:

1. Goto LESS plugin page in GitHub ( author danro )

https://github.com/danro/LESS-sublime

and click "Download ZIP" button

less syntax highlighting sublime text 2 tutorial screenshot 1

less syntax highlighting sublime text 2 tutorial screenshot 2


2. Open folder where Sublime Text 2 stores packages and create folder "LESS"
 %APPDATA%/Sublime Text 2/Packages/

For example on my PC:
C:\Users\samuraikit\AppData\Roaming\Sublime Text 2\Packages

less syntax highlighting sublime text 2 tutorial screenshot 3

less syntax highlighting sublime text 2 tutorial screenshot 4

3. Copy all files from downloaded archive into folder LESS in Sublime 2 Packages directory
e.g. C:\Users\samuraikit\AppData\Roaming\Sublime Text 2\Packages\LESS

less syntax highlighting sublime text 2 tutorial screenshot 5

4. Restart Sublime Text 2 and open any .less file

less syntax highlighting sublime text 2 tutorial screenshot 6

Hooray !!! it works :)

less syntax highlighting sublime text 2 tutorial screenshot 7

No comments:

Post a Comment