Перейти к содержимому

Как импортировать UDL в Notepad ++?

1

Мне нужно сделать форматирование кода для Excel formula. Я нахожу эту ссылку, внутри которой есть zipфайл с определением и UDL.

Моя проблема в том, что объяснение UDLнемного размыто для меня:

и файл UDL может быть импортирован в UDL

Как импортировать UDL внутри Notepad++?

2 754 просмотра
Bogdan Bogdanov спросил 10 лет назад
B 121

1 ответ

3
Принятый ответ

How do I import a UDL (User Defined Language) into Notepad++?

Simple Install:

  • Menu -> "Language" -> "Define your language..."

    This opens the "User Defined Language" dialog:

    enter image description here

  • Click "Import" and navigate to the UDL file.

Manual Install:

  • Unpack to an .xml file, if zipped;

  • If you don't have an userDefineLang.xml file already, copy this file into the Notepad++ Install Folder.

    It should be named userDefineLang.xml.

    Note:

    • It was reported that "creating the XML file in C:\Program Files (x86)\Notepad++ on 64-bit Windows 7 didn’t add the syntax highlighting to notepad++. I had to move the XML file to <user>\AppData\Roaming\Notepad++ for it to work."
  • Otherwise, open both the existing and new file.

  • Select all of the new file, copy, and paste at the end of the current file.

  • This will have created a spurious </Notepad_Plus><Notepad_plus> pair in the middle of the file, each tag on a line by itself. Remove these two consecutive lines.

  • Close Notepad++.

Your Languages menu will show the newly added language at the bottom, next time you launch Notepad++.

Source How to install user defined language files

DavidPostill ответил 10 лет назад
D 102 116