Adding a user-defined language in Notepad++

前端 未结 8 1027
萌比男神i
萌比男神i 2021-01-31 13:58

I\'m trying to add the syntax plugin for the Go programming language in Notepad++.

There is a repository for such user-defined languages. I downloaded and unzip

相关标签:
8条回答
  • 2021-01-31 14:58

    I just got it working on my system after some tinkering. Put this at the top of the userDefinedLang.xml file and the go.xml file:

    <?xml version="1.0" encoding="Windows-1252" ?>
    

    That should do the trick (after reopening Notepad++).

    go.xml should be in the plugins/APIs folder, and userDefinedLang.xml goes in the root of Notepad++ as you said.

    0 讨论(0)
  • 2021-01-31 14:58

    If you don't have any user languages defined before, then after renaming userDefinedLang_Go.xml to userDefinedLang.xml, also edit the text of file by adding the tags <NotepadPlus></NotepadPlus> around the original content.

    0 讨论(0)
提交回复
热议问题