Syntax Highlighting in Notepad++: How to treat a user-defined language as built-in?

后端 未结 3 1827
后悔当初
后悔当初 2021-02-05 23:41

This is a very minor issue that has nonetheless annoyed me for months. I\'ve spent hours Googling it to no avail.

To enable syntax highlighting of .ahk files in Notepad+

3条回答
  •  一生所求
    2021-02-06 00:27

    To install the syntax highlighter in Notepad++ version 6+:

    1. In the main menu, go to View > User defined language...
    2. Push the "Import..." button.
    3. Browse to the syntax colouring file. It may be either an .xml or a .udl file.
    4. It will report "Import Successful"
    5. Now, go and open one of the configuration files in Notepad++.
    6. Voila! Colour!

    If the file was created correctly, it should already include the extension reference and automatically recognize new files and display them in the proper context. However, any files open in NPP will not automatically display the new colour highlighting until you close and re-open them.

    Here is more information on NPP highlighters.

    Here are some more User-Defined Highlighters.

    Otherwise, maybe something is wrong with your udl file. You can try one that I made, if you like.

提交回复
热议问题