How to add syntax highlighting for Less in Notepad ++?

I want Notepad ++ to process my .less files the same as my .css files and thus get syntax highlighting for all .less files that I open.

+50
css less highlight notepad ++
Feb 06 2018-11-11T00:
source share
2 answers

To get LESS syntax highlighting, you need to download and import a custom language file. Here are some links to language files:

Installation Instructions from the GitHub Repository :

  • Download less.xml file
  • Open Notepad ++
  • Go to Language -> Define your language... , click Import... and select the less.xml file that you downloaded
  • Close and restart Notepad ++
  • Done

Another way to install language files is to copy them to a file in the Notepad ++ installation directory .

+59
Apr 15 2018-12-12T00:
source share

Download the XML file of the added language (for example, Less ) from this page

In Notepad ++, open the Language menu> Define your language... and Import file

+4
May 23 '13 at 12:41
source share



All Articles