如何在 Notepad++ 中为 PHP 的内置函数编辑突出显示?

How do I edit highlighting for built-in functions for PHP in Notepad++?

问题: 谁能告诉我在 Notepad++ 中的什么地方可以为 PHP 中的内置函数添加语法高亮?

PHP 中有几个内置函数 Notepad++ 没有突出显示。我注意到的一个是“real_escape_string”。

langs.model.xml 文件包含要用 Notepad++ 支持的语言突出显示的单词。

langs.model.xml 文件位于 C:\程序Files\Notepad++\langs.model.xml

在该文件的顶部,它说了以下内容: "支持语言的关键字,不要碰!"

我还是编辑了文件。我在 PHP 部分的关键字中包含了 "real_escape_string"。它不起作用。 real_escape_string 函数未突出显示。

我找不到从用户界面为内置函数添加语法突出显示的方法。

Under "Settings -> Preferences" I have looked at all the options and there is no option to edit syntax highlighting

Under "Settings -> Style Configurator" there's no place to edit syntax highlighting

提前谢谢你。

%appdata%/Roaming/Notepad++/langs.xml

PHP 的关键字位于第 172 行附近

<keywords> <keywords?> 标签之间添加您希望突出显示的关键字,然后重新启动记事本++