I want Notepad++ to treat my .less files just as my .css files and thereby get syntax highlighting for any .less
files I open.
To get LESS syntax highlighting, you have to download and import a user defined language file. Here are some links to language files:
Installation instructions from the GitHub repository:
- Download the
less.xml
file- Open Notepad++
- Go to
Language -> Define your language...
, click onImport...
and select theless.xml
file you've downloaded- Close and restart Notepad++
- Done
Another way to install language files is to copy them into a file in the Notepad++ installation directory.