How to create a user-defined language in Notepad++ based on an existing language?

老子叫甜甜 提交于 2019-12-30 05:59:57

问题


I frequently work with files that have an extension of .ebs. This is a language based on vbscript with a number of new keywords.

Currently I set notepad++ to just use the built-in vb highlighting for files with extension .vbs. Works ok, but the custom keywords do not get highlighted.

I would like to create a user-defined language for the .ebs files but base it off of the built-in vb language.

Is this possible? I searched but the built-in languages do not have an associated .xml file to copy and change.


回答1:


All highlights are situated in \langs.model.xml and \stylers.model.xml.

Copy the one xml you want to base on and edit it the way you like.




回答2:


The previous answers are correct and very helpful. Here is a slight update.

In Notepad++ 6.6.9 the xml files are called "stylers.xml" and "langs.xml" and are located in C:\Users\MyUserName\AppData\Roaming\Notepad++ (at least on Windows 7 computer).



来源:https://stackoverflow.com/questions/7878241/how-to-create-a-user-defined-language-in-notepad-based-on-an-existing-language

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!