Sublime Text 2 and .less Syntax Highlighting

So you've hopped onto the Sublime Text 2 bandwagon and ready to roll with {less}. Now you simply want to enable syntax highlighting while working on .less files...right? Well, it's actually quite simple!

First, open a .less file in Sublime Text 2. Then View > Syntax > Open all with current extension as... > CSS


After originally publishing this, of course I stumble across a github project called Less-sublime. Using the Package Control plugin, it's an absolute breeze to setup. Even if you don't, simply follow the installation directions on the github project.

So there you go...two methods for getting {less} syntax highlighting for you! Either way works great, but obviously the github project offers a bit more {less}-specific syntax support.

Hope that helps...cheers!

So how are you liking Sublime Text2?
# Posted By Matt Levine | 2/1/12 10:14 PM

I'm finding myself using it more than I thought I would...I still use Dw for some things though. However, I rarely launch CF Builder anymore. Glad you put me onto this!

# Posted By Steve Withington | 2/2/12 8:07 AM
I've been using it this week and like it. Y'all need to install the Zen Coding package.
# Posted By TonyAdams | 2/2/12 8:25 AM

Thanks for sharing...that looks pretty sweet!
# Posted By Steve Withington | 2/2/12 8:50 AM
If you haven't already check out also available via Package Control.
# Posted By atomi | 2/4/12 4:03 AM

already installed my man! in fact, you should be able to see it as an option in the screenshot just above CSS in the blog post :)

great work btw...cheers!
# Posted By Steve Withington | 2/4/12 9:43 AM
Perfect! Just what I was looking for. Installed in a snap with Package Control!

Many Thanks,
# Posted By Nick Tomlin | 4/17/12 9:04 AM
Looks good ...

Since I moved to (G|Mac)Vim ... I ain't looked back :-)
# Posted By Edward Beckett | 7/2/12 10:18 PM
Great but I wonder how I can edit my theme so that lines with // turn grey like normal css comments?
# Posted By artdog | 7/11/12 8:47 AM
@artdog: You can also try this syntax highlighter specifically created for .LESS files:
# Posted By joan | 10/15/12 12:19 PM
If anyone is wondering, the installation through Package Control is not working but no problem, you just need to download the latest version, unzip on you "Packages" directory and rename it to "LESS", restart sublime and you're ready to rock.
# Posted By JorgeArtware | 7/14/13 8:19 PM
Its working fine. Thanks a lot
# Posted By flashaddicts | 5/27/14 10:28 AM
Many Sublime Text 2 and .less Syntax users have such question in their mind for which you have provided solution here. This tutorial of enable syntax highlighting while working on .less files will sure helpful to many.

# Posted By Alyssa P | 9/27/18 5:20 AM
I like this post, I wish you will keep on to have similar posts to share with everyone. Let's make dressing down easy AND stylish

# Posted By Yes Online | 9/27/18 7:40 AM
Sublime Text 2 and .less syntax highlighting which you described here is really helpful for the installation directions on the github project.

# Posted By Ida Wallace | 9/28/18 6:19 AM Visit this site and get followers for Instagram
# Posted By evan | 9/28/18 7:14 AM
They Are Not Able To Finish The Writing Assignments On Time. For Some Students, Writing Any Writing Assignments Is Able To Waste Their Time
# Posted By Pay Me To Do Accounting Essay Writing Service | 10/20/18 12:44 AM
Good Way Of Telling, Good Post To Take Facts Regarding My Presentation Subject Matter, Which I Am Going To Deliver In My College
# Posted By Help With Engineering Assignment | 10/20/18 3:44 AM
blonde bangs wig hair transplant uk reviews wavy hair extensions weft socap hair extensions vs great lengths double drawn hair extensions suppliers faux ponytail on natural hair hair extensions reviews raw indian hair bundle deals hair extension courses northamptonshire bun hairstyles for short hair step by step
# Posted By VS | 11/4/18 8:50 PM
Keep on blogging! It’s getting through the tough times that make you stronger and then the good times will follow, keep writing about your experiences and we should all pull together.
# Posted By Laboratory Filtration Equipments | 11/26/18 4:15 AM
I understand that it becomes difficult to take out time for assignments and other academic works, due to the busy schedule. But with Programming Assignment Help one can solve this issue as well. Make sure that you take the help of a genuine writing service as these services can help you understand the basics from the first level.
# Posted By programming assignment help | 12/14/18 5:06 AM
The post is really good to visit. Go for the best service.
# Posted By Mickey James | 1/9/19 7:40 AM
Looking for Microsoft Office Setup and Support services. When it comes to Office Setup, you can depend on us. We help with Ms office, installation, etc. Get product info here:
# Posted By Office.Com/Setup 365 - Office Com Setup | 1/12/19 4:35 AM
we are providing all latest government jobs notifications in hanvi jobs website every one essay to understand and apply process all India govt jobs.each and every category like central and state wise jobs notification in available.
# Posted By hanvi | 1/17/19 3:57 AM
# Posted By hanvi | 1/17/19 3:57 AM
It is nice to read such high-quality content. It is a good article that discusses the topic at hand quite well. I am looking forward to read more articles from your site. Keep up the good work.
# Posted By assignment help | 3/14/19 12:45 AM
Team X-Treme is a company that offers Sports bikes/motorbikes which are in your budget. We also offer spare parts like helmets and gloves, etc. Visit our site to see our full inventory.
# Posted By Team Extreme | 6/19/19 12:42 PM
Our 4 plants working every day to provide you fresh seafood caught from the deep sea of Atlantic. Visit our website to check out our products.
# Posted By Deep Sea Atlantic | 6/20/19 8:27 AM

© 2019, Stephen J. Withington, Jr.  |  BlogCFC was created by Raymond Camden – Version 5.9.004

Creative Commons License  |  This work is licensed under a Creative Commons Attribution 3.0 Unported License.  |  Hosted by