开发者

How do you add syntax highlighting for Less in Notepad++?

I want Notepad++ to treat my .less files just as my .css files and thereby 开发者_StackOverflow社区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:

  • LESS language file, as listed in the Notepad++ User Defined Language List
  • LESS language file on GitHub

Installation instructions from the GitHub repository:

  • Download the less.xml file
  • Open Notepad++
  • Go to Language -> Define your language..., click on Import... and select the less.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.


Download from this page the XML file of the language to add (such as Less)

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜