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

后端 未结 3 1835
后悔当初
后悔当初 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:15

    It should be working. Check again:

    1. Go to Settings → Style Configurator, select your language and add in the User ext. the ahk extension (without a dot!).
    2. If it's a User Defined Language, then go to Language → Define your language, then select from the dropdown list your language, and in the text box named Ext. that will appear, add your "ahk" extension.
    3. Make sure that the ahk extension is defined ONLY to AutoHotKey, not in two languages simultaneously (so remove the extension from AutoIt).
    4. If it's still not working, check your Notepad++ version. Latest is 6.5.1, previous versions might had a bug.

提交回复
热议问题