css - 如何在 Notepad++ 中为 Less 添加语法高亮显示?

标签 css notepad++ highlight less

我希望 Notepad++ 像对待 .css 文件一样对待我的 .less 文件,从而为任何 .less 文件获取语法高亮显示打开。

最佳答案

要获得 LESS 语法高亮,您必须下载并导入一个用户定义的语言文件。以下是一些语言文件的链接:

来自 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

另一种安装语言文件的方法是 copy them into a file in the Notepad++ installation directory .

关于css - 如何在 Notepad++ 中为 Less 添加语法高亮显示?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4913834/

相关文章:

css - 将子级设置为内容宽度,忽略父级宽度,并使父级滚动

button - CSS 按钮调整

matlab - 用于从 Notepad++ 运行 MATLAB 代码的 bat 文件

PYTHON Pandas - 根据其他数据框中的值对数据框使用 Pandas 样式

jquery - 更改背景图像 css

regex - 如何在 Notepad++ 中找到最后一个字符为 "A"的记录

notepad++ - 更改缩进的颜色

java - 如何在javafx Textarea中突出显示文本?

python-3.x - Pandas 样式 applymap 使用 lambda 函数突出显示重复项

带 3 张图片的 CSS 滑动门,悬停效果问题