我希望 Notepad++ 像对待 .css 文件一样对待我的 .less 文件,从而为任何 .less
文件获取语法高亮显示打开。
最佳答案
要获得 LESS 语法高亮,您必须下载并导入一个用户定义的语言文件。以下是一些语言文件的链接:
来自 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
另一种安装语言文件的方法是 copy them into a file in the Notepad++ installation directory .
关于css - 如何在 Notepad++ 中为 Less 添加语法高亮显示?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4913834/